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:
parent
51657715c1
commit
3e61e179d9
|
@ -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'] ) {
|
||||
|
|
Loading…
Reference in New Issue