Sanitize plural and singular args for list tables. props sbressler, fixes #18875.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-10-19 23:51:06 +00:00
parent 51657715c1
commit 3e61e179d9

View File

@ -91,6 +91,9 @@ class WP_List_Table {
if ( !$args['plural'] )
$args['plural'] = $screen->base;
$args['plural'] = sanitize_key( $args['plural'] );
$args['singular'] = sanitize_key( $args['singular'] );
$this->_args = $args;
if ( $args['ajax'] ) {