Changeset 15807
- Timestamp:
- 10/14/2010 06:37:08 PM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/default-list-tables.php
r15801 r15807 3871 3871 wp_die( __( 'Cheatin’ uh?' ) ); 3872 3872 } 3873 3873 3874 3874 function prepare_items() { 3875 3875 global $ct; … … 3881 3881 $search = !empty( $_REQUEST['s'] ) ? trim( stripslashes( $_REQUEST['s'] ) ) : ''; 3882 3882 3883 if ( '' !== $ this->search ) {3883 if ( '' !== $search ) { 3884 3884 $this->search = array_merge( $this->search, array_filter( array_map( 'trim', explode( ',', $search ) ) ) ); 3885 3885 $this->search = array_unique( $this->search ); 3886 } 3887 3888 if ( !empty( $_REQUEST['features'] ) ) { 3889 $this->features = $_REQUEST['features']; 3890 $this->features = array_map( 'trim', $this->features ); 3891 $this->features = array_map( 'sanitize_title_with_dashes', $this->features ); 3892 $this->features = array_unique( $this->features ); 3893 } 3894 3895 if ( $this->search || $this->features ) { 3886 3896 foreach ( $themes as $key => $theme ) { 3887 3897 if ( !$this->search_theme( $theme ) ) -
trunk/wp-admin/themes.php
r15761 r15807 143 143 <br class="clear"/> 144 144 145 <div id="filters" <?php if ( ! isset( $tpage ) || $tpage != 'filter' ) echo ' style="display: none"' ?>>145 <div id="filters" style="display: none;"> 146 146 <?php $feature_list = get_theme_feature_list(); ?> 147 147 <div class="feature-filter"> … … 161 161 ?> 162 162 <li> 163 <input type="checkbox" name="features[<?php echo $key; ?>]" id="feature-id-<?php echo $key; ?>" value="<?php echo $key; ?>" <?php checked( i sset( $checked_features ) && in_array( $key, $checked_features ) ); ?>/>163 <input type="checkbox" name="features[<?php echo $key; ?>]" id="feature-id-<?php echo $key; ?>" value="<?php echo $key; ?>" <?php checked( in_array( $key, $wp_list_table->features ) ); ?>/> 164 164 <label for="feature-id-<?php echo $key; ?>"><?php echo $feature_name; ?></label> 165 165 </li>
Note: See TracChangeset
for help on using the changeset viewer.