WordPress.org

Make WordPress Core

Ticket #18094: 18094.patch

File 18094.patch, 1.7 KB (added by SergeyBiryukov, 3 years ago)
  • wp-admin/includes/class-wp-theme-install-list-table.php

     
    6666                                                break; 
    6767                                } 
    6868 
    69                                 if ( !empty( $_POST['features'] ) ) { 
    70                                         $terms = $_POST['features']; 
     69                                if ( !empty( $_REQUEST['features'] ) ) { 
     70                                        $terms = $_REQUEST['features']; 
    7171                                        $terms = array_map( 'trim', $terms ); 
    7272                                        $terms = array_map( 'sanitize_title_with_dashes', $terms ); 
    7373                                        $args['tag'] = $terms; 
  • wp-admin/includes/theme-install.php

     
    7777        install_theme_search_form(); 
    7878?> 
    7979<h4><?php _e('Feature Filter') ?></h4> 
    80 <form method="post" action="<?php echo self_admin_url( 'theme-install.php?tab=search' ); ?>"> 
    8180<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" /> 
    8284        <?php 
    8385        $feature_list = get_theme_feature_list( ); 
    8486        echo '<div class="feature-filter">'; 
     
    9496?> 
    9597 
    9698<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; ?>" /> 
    98100        <label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label> 
    99101</li> 
    100102