WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/10/2011 12:01:16 AM (9 years ago)
Author:
azaozz
Message:

Do not run bulk edit when the user clicks on a filter, fixes #17733

File:
1 edited

Legend:

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

    r17900 r18222  
    289289        echo "<select name='action$two'>\n";
    290290        echo "<option value='-1' selected='selected'>" . __( 'Bulk Actions' ) . "</option>\n";
    291         foreach ( $this->_actions as $name => $title )
    292             echo "\t<option value='$name'>$title</option>\n";
     291       
     292        foreach ( $this->_actions as $name => $title ) {
     293            $class = 'edit' == $name ? ' class="hide-if-no-js"' : '';
     294
     295            echo "\t<option value='$name'$class>$title</option>\n";
     296        }
     297
    293298        echo "</select>\n";
    294299
Note: See TracChangeset for help on using the changeset viewer.