Remove 1=1 clause
git-svn-id: https://develop.svn.wordpress.org/trunk@2324 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a5fec00554
commit
2072c977d7
@ -193,7 +193,7 @@ textarea,input,select {
|
||||
if (!$result)
|
||||
die ("Error in posting...");
|
||||
|
||||
$sql2 = "SELECT * FROM $wpdb->posts WHERE 1=1 ORDER BY ID DESC LIMIT 1";
|
||||
$sql2 = "SELECT * FROM $wpdb->posts ORDER BY ID DESC LIMIT 1";
|
||||
$result2 = mysql_query($sql2);
|
||||
$myrow2 = mysql_fetch_array($result2);
|
||||
$post_ID=$myrow2[0];
|
||||
|
Loading…
Reference in New Issue
Block a user