| @@ -33,13 +33,13 @@ | ||
| 33 | 33 | SELECT |
| 34 | 34 | ID, post_content |
| 35 | 35 | FROM $wpdb->posts |
| 36 | 36 | WHERE |
| 37 | - ( post_type IN ('post', 'page') ) | |
| 37 | + ( post_type = 'post' OR post_type = 'page' ) | |
| 38 | 38 | AND |
| 39 | 39 | ( post_content LIKE '%[" . $shortcode . "%]%' ) |
| 40 | 40 | AND |
| 41 | - ( post_status IN ('publish', 'private') ) | |
| 41 | + ( post_status = 'publish' ) | |
| 42 | 42 | " |
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | if( $pages ){ |