- Timestamp:
- 01/14/2016 08:05:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r36301 r36302 76 76 global $status, $plugins, $totals, $page, $orderby, $order, $s; 77 77 78 wp_reset_vars( array( 'orderby', 'order' , 's') );78 wp_reset_vars( array( 'orderby', 'order' ) ); 79 79 80 80 /** … … 225 225 } 226 226 227 if ( $s) {227 if ( strlen( $s ) ) { 228 228 $status = 'search'; 229 229 $plugins['search'] = array_filter( $plugins['all'], array( $this, '_search_callback' ) ); … … 269 269 270 270 /** 271 * @staticvar string $term 271 * @global string $s 272 * 272 273 * @param array $plugin 273 274 * @return bool 274 275 */ 275 276 public function _search_callback( $plugin ) { 276 static $term = null; 277 if ( is_null( $term ) ) 278 $term = wp_unslash( $_REQUEST['s'] ); 277 global $s; 279 278 280 279 foreach ( $plugin as $value ) { 281 if ( is_string( $value ) && false !== stripos( strip_tags( $value ), $ term) ) {280 if ( is_string( $value ) && false !== stripos( strip_tags( $value ), $s ) ) { 282 281 return true; 283 282 }
Note: See TracChangeset
for help on using the changeset viewer.