Sanitize plural and singular args for list tables. props sbressler, fixes #18875.
git-svn-id: https://develop.svn.wordpress.org/trunk@19020 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c55e62a9ae
commit
420fe65fca
@ -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
Block a user