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
1 changed files with 3 additions and 0 deletions

View File

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