[wp-trac] [WordPress Trac] #21344: Add hook "restrict_manage_comments" to class-wp-comments-list-table.php for additional filtering by plugins
WordPress Trac
wp-trac at lists.automattic.com
Sun Jul 22 17:08:39 UTC 2012
#21344: Add hook "restrict_manage_comments" to class-wp-comments-list-table.php for
additional filtering by plugins
-------------------------+-----------------------------
Reporter: hardy101 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 3.4.1
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
The comments list (class-wp-comments-list-table.php) in wp-admin needs a
hook to allow plugins to do additional filtering of comments, just like
class-wp-posts-list-table.php on line 220.
{{{
do_action( 'restrict_manage_posts' );
}}}
The new line of code would be in class-wp-comments-list-table.php:
{{{
do_action( 'restrict_manage_comments' );
}}}
A one-line patch (attached) does the trick.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21344>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list