]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-ms-themes-list-table.php
Wordpress 3.6
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-ms-themes-list-table.php
index 2461b1d1db35b536cff466a74a9b3fb8e970a743..1d61af9f82ac061413f0022eb4aa8cec0194053a 100644 (file)
@@ -126,7 +126,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
        function _search_callback( $theme ) {
                static $term;
                if ( is_null( $term ) )
        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.
 
                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() {
        }
 
        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;
                global $status, $page, $s, $totals;
 
                $context = $status;