Make WordPress Core


Ignore:
Timestamp:
11/23/2010 08:17:22 PM (11 years ago)
Author:
scribu
Message:

Ajaxify theme feature filter. Props ocean90 for initial patch. See #14936

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r16175 r16553  
    130130<h3><?php _e('Available Themes'); ?></h3>
    131131
    132 <form class="search-form" action="" method="get">
     132<form class="search-form filter-form" action="" method="get">
    133133<p class="search-box">
    134134    <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label>
     
    140140<br class="clear"/>
    141141
    142 <div id="filters" style="display: none;">
     142<div id="filter-box" style="display: none;">
    143143<?php $feature_list = get_theme_feature_list(); ?>
    144144    <div class="feature-filter">
     
    155155                        $feature_name = $feature;
    156156                        $feature_name = esc_html( $feature_name );
    157                         $feature = esc_attr($feature);
     157                        $feature = esc_attr( $feature );
    158158                        ?>
    159159                <li>
    160                     <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 ) ); ?>/>
     160                    <input type="checkbox" name="features[]" id="feature-id-<?php echo $key; ?>" value="<?php echo $key; ?>" <?php checked( in_array( $key, $wp_list_table->features ) ); ?>/>
    161161                    <label for="feature-id-<?php echo $key; ?>"><?php echo $feature_name; ?></label>
    162162                </li>
Note: See TracChangeset for help on using the changeset viewer.