Do not run bulk edit when the user clicks on a filter, fixes #17733
git-svn-id: http://svn.automattic.com/wordpress/trunk@18222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -288,8 +288,13 @@ class WP_List_Table {
|
||||
|
||||
echo "<select name='action$two'>\n";
|
||||
echo "<option value='-1' selected='selected'>" . __( 'Bulk Actions' ) . "</option>\n";
|
||||
foreach ( $this->_actions as $name => $title )
|
||||
echo "\t<option value='$name'>$title</option>\n";
|
||||
|
||||
foreach ( $this->_actions as $name => $title ) {
|
||||
$class = 'edit' == $name ? ' class="hide-if-no-js"' : '';
|
||||
|
||||
echo "\t<option value='$name'$class>$title</option>\n";
|
||||
}
|
||||
|
||||
echo "</select>\n";
|
||||
|
||||
submit_button( __( 'Apply' ), 'button-secondary action', false, false, array( 'id' => "doaction$two" ) );
|
||||
|
||||
Reference in New Issue
Block a user