Ticket #14897: 14897.4.diff
File 14897.4.diff, 1.1 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/list-table-ms-themes.php
54 54 'disabled' => array(), 55 55 'upgrade' => array() 56 56 ); 57 57 58 58 $allowed_themes = get_site_allowed_themes(); 59 59 $current = get_site_transient( 'update_themes' ); 60 60 … … 75 75 $themes['upgrade'] = array(); 76 76 77 77 if ( $s ) { 78 $status = 'search'; echo "opopop";78 $status = 'search'; 79 79 $themes['search'] = array_filter( $themes['all'], array( $this, '_search_callback' ) ); 80 80 } 81 81 … … 113 113 static $term; 114 114 if ( is_null( $term ) ) 115 115 $term = stripslashes( $_REQUEST['s'] ); 116 117 foreach ( $theme as $key->$theme ) 118 if ( stripos( $key, $term ) !== false ) 116 117 $search_fields = array( 'Name', 'Title', 'Description', 'Author', 'Author Name', 'Author URI', 'Template', 'Stylesheet' ); 118 foreach ( $search_fields as $field ) 119 if ( stripos( $theme[ $field ], $term ) !== false ) 119 120 return true; 120 121 121 122 return false;