mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
New button styles.
Using the new buttons: * Button classes are now stackable. * All buttons should use a base class of "button". * Buttons default to the gray style (formerly "button-secondary"). Buttons can add a style by adding additional classes. To make a primary button, add the "button-primary" class. * Buttons can be rendered in various sizes. In addition to the default size, you can add "button-large", "button-small", or "button-tiny". For backwards compatibility reasons, "button-primary" and "button-secondary" both work as standalone classes. get_submit_button() has been adjusted to handle shorthand button classes (i.e. button classes can be passed without the "button-" prefix). props lessbloat, helenyhou, trepmal, nacin. see #21598. git-svn-id: https://develop.svn.wordpress.org/trunk@21789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -218,11 +218,11 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
wp_dropdown_categories( $dropdown_options );
|
||||
}
|
||||
do_action( 'restrict_manage_posts' );
|
||||
submit_button( __( 'Filter' ), 'secondary', false, false, array( 'id' => 'post-query-submit' ) );
|
||||
submit_button( __( 'Filter' ), 'small', false, false, array( 'id' => 'post-query-submit' ) );
|
||||
}
|
||||
|
||||
if ( $this->is_trash && current_user_can( $post_type_object->cap->edit_others_posts ) ) {
|
||||
submit_button( __( 'Empty Trash' ), 'button-secondary apply', 'delete_all', false );
|
||||
submit_button( __( 'Empty Trash' ), 'small apply', 'delete_all', false );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user