[wp-trac] [WordPress Trac] #19116: If post type "post" not exist

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 2 14:45:32 UTC 2011


#19116: If post type "post" not exist
--------------------------+-----------------------------
 Reporter:  djudorange    |      Owner:  djudorange
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  3.2.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If the post type "post" is unregister, in users list page (in admin) ,
 you have an error Mysql.

 At line 4156 in wp-includes/post.php, the get_post_type_object() returns
 false (because the post type don't exist), the next "if" returns '1 = 0'.

 But it missing the 'WHERE' before '1 = 0'.

 It is possible to fix it by replacing the '1 = 0' to 'WHERE 1 = 0'

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19116>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list