From 420fe65fcaeaa0d0558733d0d2309a7cca859ac4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 19 Oct 2011 23:51:06 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-list-table.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index f736f3d297..446174d4de 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -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'] ) {