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:
Andrew Nacin 2011-10-19 23:51:06 +00:00
parent c55e62a9ae
commit 420fe65fca

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'] ) {