X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/baca9ce86a38dc54c4574890ee2d352fd81f78b2..61343b82c4f0da4c68e4c6373daafff4a81efdd1:/wp-admin/includes/class-wp-ms-themes-list-table.php?ds=sidebyside diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 2461b1d1..1d61af9f 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -126,7 +126,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { function _search_callback( $theme ) { static $term; if ( is_null( $term ) ) - $term = stripslashes( $_REQUEST['s'] ); + $term = wp_unslash( $_REQUEST['s'] ); foreach ( array( 'Name', 'Description', 'Author', 'Author', 'AuthorURI' ) as $field ) { // Don't mark up; Do translate. @@ -243,11 +243,11 @@ class WP_MS_Themes_List_Table extends WP_List_Table { } function display_rows() { - foreach ( $this->items as $key => $theme ) - $this->single_row( $key, $theme ); + foreach ( $this->items as $theme ) + $this->single_row( $theme ); } - function single_row( $key, $theme ) { + function single_row( $theme ) { global $status, $page, $s, $totals; $context = $status;