Opened 19 months ago
Closed 19 months ago
#19116 closed defect (bug) (fixed)
If post type "post" not exist
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Database | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| 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.