Ticket #18094: 18094.patch
File 18094.patch, 1.7 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-theme-install-list-table.php
66 66 break; 67 67 } 68 68 69 if ( !empty( $_ POST['features'] ) ) {70 $terms = $_ POST['features'];69 if ( !empty( $_REQUEST['features'] ) ) { 70 $terms = $_REQUEST['features']; 71 71 $terms = array_map( 'trim', $terms ); 72 72 $terms = array_map( 'sanitize_title_with_dashes', $terms ); 73 73 $args['tag'] = $terms; -
wp-admin/includes/theme-install.php
77 77 install_theme_search_form(); 78 78 ?> 79 79 <h4><?php _e('Feature Filter') ?></h4> 80 <form method="post" action="<?php echo self_admin_url( 'theme-install.php?tab=search' ); ?>">81 80 <p class="install-help"><?php _e('Find a theme based on specific features') ?></p> 81 82 <form method="get" action=""> 83 <input type="hidden" name="tab" value="search" /> 82 84 <?php 83 85 $feature_list = get_theme_feature_list( ); 84 86 echo '<div class="feature-filter">'; … … 94 96 ?> 95 97 96 98 <li> 97 <input type="checkbox" name="features[ <?php echo $feature; ?>]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" />99 <input type="checkbox" name="features[]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" /> 98 100 <label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label> 99 101 </li> 100 102