Changes between Initial Version and Version 2 of Ticket #27266
- Timestamp:
- 03/03/2014 09:33:14 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27266 – Description
initial v2 4 4 5 5 {{{ 6 SELECT SQL_CALC_FOUND_ROWS mladev_posts.ID7 FROM mladev_posts6 SELECT SQL_CALC_FOUND_ROWS wp_posts.ID 7 FROM wp_posts 8 8 WHERE 1=1 9 AND ((( mladev_posts.post_title LIKE '%Guatemala%')10 OR ( mladev_posts.post_content LIKE '%Guatemala%'))11 AND (( mladev_posts.post_title LIKE '%IRF3%')12 OR ( mladev_posts.post_content LIKE '%IRF3%')))13 AND mladev_posts.post_type IN ('post', 'page', 'attachment')14 AND ( mladev_posts.post_status = 'publish'15 OR mladev_posts.post_author = 116 AND mladev_posts.post_status = 'private')9 AND (((wp_posts.post_title LIKE '%Guatemala%') 10 OR (wp_posts.post_content LIKE '%Guatemala%')) 11 AND ((wp_posts.post_title LIKE '%IRF3%') 12 OR (wp_posts.post_content LIKE '%IRF3%'))) 13 AND wp_posts.post_type IN ('post', 'page', 'attachment') 14 AND (wp_posts.post_status = 'publish' 15 OR wp_posts.post_author = 1 16 AND wp_posts.post_status = 'private') 17 17 ORDER BY (CASE 18 WHEN mladev_posts.post_title LIKE '%Guatemala IRF3%'18 WHEN wp_posts.post_title LIKE '%Guatemala IRF3%' 19 19 THEN 1 20 WHEN mladev_posts.post_title LIKE '%Guatemala%'21 AND mladev_posts.post_title LIKE '%IRF3%'20 WHEN wp_posts.post_title LIKE '%Guatemala%' 21 AND wp_posts.post_title LIKE '%IRF3%' 22 22 THEN 2 23 WHEN mladev_posts.post_title LIKE '%Guatemala%'24 OR mladev_posts.post_title LIKE '%IRF3%'23 WHEN wp_posts.post_title LIKE '%Guatemala%' 24 OR wp_posts.post_title LIKE '%IRF3%' 25 25 THEN 3 26 WHEN mladev_posts.post_content LIKE '%Guatemala IRF3%'26 WHEN wp_posts.post_content LIKE '%Guatemala IRF3%' 27 27 THEN 4 28 ELSE 5 END), mladev_posts.post_date DESC28 ELSE 5 END), wp_posts.post_date DESC 29 29 LIMIT 0, 2 30 30 }}} 31 31 32 Although the `post_type` clause includes attachment, the `post_status` test always fails because attachments have a `post_status` of inherit. 33 34 32 Although the `post_type` clause includes `attachment`, the `post_status` test always fails because attachments have a `post_status` of `inherit`.