Opened 14 years ago
Closed 14 years ago
#19116 closed defect (bug) (fixed)
If post type "post" not exist
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.2.1 |
Component: | Database | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
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'
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Adds "WHERE" if $full is true.