Make WordPress Core

Changeset 19857


Ignore:
Timestamp:
02/07/2012 09:06:52 PM (13 years ago)
Author:
ryan
Message:

Change feature filter from post to get so feature selections aren't lost when paging. Props SergeyBiryukov. fixes #18094

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-theme-install-list-table.php

    r19712 r19857  
    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 );
  • trunk/wp-admin/includes/theme-install.php

    r19840 r19857  
    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( );
     
    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>
Note: See TracChangeset for help on using the changeset viewer.