[wp-trac] [WordPress Trac] #10629: Also show comment count in wp-admin/users.php
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 16 18:30:11 UTC 2009
#10629: Also show comment count in wp-admin/users.php
-------------------------+--------------------------------------------------
Reporter: novasource | Owner: novasource
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.8.5
Component: Users | Version: 2.8.4
Severity: normal | Keywords: user comment count
-------------------------+--------------------------------------------------
Changes (by novasource):
* owner: => novasource
* status: new => assigned
Comment:
I attached a beta of the new features. Summary of changes:
* In '''template.php''':
* Added '''comments''' to '''users''' case in switch in
'''get_column_headers'''.
* To user_row:
* Added $numcomments variable.
* Added case switch to '''switch ($column_name)''' for new
'''comments''' column. Note that this column doesn't use the same CSS
classes as '''posts'''. I tried taking the same CSS classes and changing
posts to categories, but the number was vertically centered.
* Removed display of 0 from both posts and columns. This
'''drastically''' helps usability where you have sparse matrixes--which
will be the case if a lot of spammers got in--because a blank is a lot
easier to spot than 0 against a set of integers that are >0.
* In '''user.php''':
* Added get_usernumcomments function. It's basically a copy of
get_usernumposts with obvious modifications, including leaving out the
'''get_private_posts_cap_sql''' at the end of the SQL statement. I
inspected the referenced code and didn't think it's relevant to comments,
although I admit I am not fully aware enough of the plugin ecosystem to
know if I should have a different stance. Note that I assume the
'''@since''' comment means this function has been present since the
indicated version?
I couldn't clearly find if you prefer patch files or full files from
external parties, so the full PHP is attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10629#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list