[wp-trac] [WordPress Trac] #10631: wp-admin/users.php does not show pages under "posts" column
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 16 18:51:21 UTC 2009
#10631: wp-admin/users.php does not show pages under "posts" column
--------------------------+-------------------------------------------------
Reporter: novasource | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8.5
Component: General | Version: 2.8.4
Severity: major | Keywords: users.php posts pages
--------------------------+-------------------------------------------------
For some reason, the SQL query in '''wp-includes/user.php''' that gets the
count of a user's posts excludes pages, so '''/wp-admin/users.php''' will
not show an accurate picture of a user's contributions. This makes no
sense at all: 1. posts and pages are first-class content types in
WordPress and 2. they are both stored in the same table.
Proposed solution: remove
{{{
AND post_type = 'post'
}}}
from '''function get_usernumposts''' in '''wp-includes/user.php'''.
This defect could result in incorrect interpretation of user activity, so
marked as major severity.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10631>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list