Skip to content

Commit 1157574

Browse files
committed
fix queries
1 parent 3877fd3 commit 1157574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wpdb-status.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ public function __construct() {
117117
echo '<span style="color:red;">' . $posts->num_rows . '</span>';
118118
echo '</h2>';
119119

120-
echo 'Empty Post Title:';
121-
echo '<pre><code>SELECT ID FROM ' . DB_PREFIX . 'posts WHERE post_content=\'\' AND post_status!=\'auto-draft\' AND (post_type=\'post\' OR post_type=\'page\')</code></pre>';
120+
echo 'Empty Post Content:';
121+
echo '<pre><code>SELECT ID FROM ' . DB_PREFIX . 'posts WHERE post_content=\'\' AND post_status!=\'draft\' AND post_status!=\'trash\' AND post_status!=\'auto-draft\' AND (post_type=\'post\' OR post_type=\'page\')</code></pre>';
122122

123123
mysqli_close($this->connection);
124124
}

0 commit comments

Comments
 (0)