diff --git a/src/wp-admin/css/customize-controls.css b/src/wp-admin/css/customize-controls.css index 3f2193b286..04e0b54798 100644 --- a/src/wp-admin/css/customize-controls.css +++ b/src/wp-admin/css/customize-controls.css @@ -1204,7 +1204,7 @@ body.cheatin p { * Widgets and Menus common styles */ -/* higher specificity than .wp-core-ui .button-secondary */ +/* higher specificity than .wp-core-ui .button */ #customize-theme-controls .add-new-widget, #customize-theme-controls .add-new-menu-item { cursor: pointer; diff --git a/src/wp-admin/css/ie.css b/src/wp-admin/css/ie.css index 90cf8f341c..d98f31bbcc 100644 --- a/src/wp-admin/css/ie.css +++ b/src/wp-admin/css/ie.css @@ -221,8 +221,7 @@ table.fixed td { } #wpbody-content input.button, -#wpbody-content input.button-primary, -#wpbody-content input.button-secondary { +#wpbody-content input.button-primary { overflow: visible; } @@ -447,8 +446,8 @@ div#dashboard-widgets { display: block; } -.tablenav .button-secondary, -.nav .button-secondary { +.tablenav .button, +.nav .button { padding-top: 2px; padding-bottom: 2px; } @@ -507,7 +506,7 @@ table.ie-fixed { border-collapse: collapse; } -.tablenav a.button-secondary { +.tablenav a.button { display: inline-block; padding: 2px 5px; } diff --git a/src/wp-admin/css/install.css b/src/wp-admin/css/install.css index d1db4ec661..9de99ee366 100644 --- a/src/wp-admin/css/install.css +++ b/src/wp-admin/css/install.css @@ -443,7 +443,7 @@ body.language-chooser { margin-right: 15px; } -.button-secondary.hide-if-no-js, +.button.hide-if-no-js, .hide-if-no-js { display: none; } diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css index b66f0c0d84..67ef22e183 100644 --- a/src/wp-admin/css/list-tables.css +++ b/src/wp-admin/css/list-tables.css @@ -656,6 +656,7 @@ th.asc a:focus span.sorting-indicator { margin-left: 2px; } +.tablenav a.button, .tablenav a.button-secondary { display: block; margin: 3px 8px 0 0; diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css index d4a7bcf624..857f14dc1a 100644 --- a/src/wp-admin/css/themes.css +++ b/src/wp-admin/css/themes.css @@ -114,7 +114,7 @@ margin-right: 3px; } -.theme-browser .theme .theme-actions .button-secondary { +.theme-browser .theme .theme-actions .button { float: none; margin-left: 3px; } diff --git a/src/wp-admin/custom-background.php b/src/wp-admin/custom-background.php index a03986f594..9626c291a0 100644 --- a/src/wp-admin/custom-background.php +++ b/src/wp-admin/custom-background.php @@ -242,7 +242,7 @@ class Custom_Background {
-
+
@@ -256,7 +256,7 @@ class Custom_Background {
-
+
@@ -272,7 +272,7 @@ class Custom_Background { - +


diff --git a/src/wp-admin/custom-header.php b/src/wp-admin/custom-header.php index fc5adb670e..c339498c11 100644 --- a/src/wp-admin/custom-header.php +++ b/src/wp-admin/custom-header.php @@ -576,7 +576,7 @@ class Custom_Image_Header { - +

- +

- + @@ -823,7 +823,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>

diff --git a/src/wp-admin/customize.php b/src/wp-admin/customize.php index 6c0b20d6c2..e45254c74a 100644 --- a/src/wp-admin/customize.php +++ b/src/wp-admin/customize.php @@ -168,7 +168,7 @@ do_action( 'customize_controls_print_scripts' ); - diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index cb7801870d..37a2e751a9 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -351,7 +351,7 @@ class WP_Comments_List_Table extends WP_List_Table { * @since 3.5.0 */ do_action( 'restrict_manage_comments' ); - submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); + submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); } if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) ) { diff --git a/src/wp-admin/includes/class-wp-links-list-table.php b/src/wp-admin/includes/class-wp-links-list-table.php index e4560e480f..222d6dfc2d 100644 --- a/src/wp-admin/includes/class-wp-links-list-table.php +++ b/src/wp-admin/includes/class-wp-links-list-table.php @@ -112,7 +112,7 @@ class WP_Links_List_Table extends WP_List_Table { echo ''; wp_dropdown_categories( $dropdown_options ); - submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); + submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); ?> - 'search-submit' ) ); ?> + 'search-submit' ) ); ?>

screen->post_type ); - submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); + submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); } if ( $this->is_trash && current_user_can( 'edit_others_posts' ) ) { diff --git a/src/wp-admin/includes/class-wp-plugin-install-list-table.php b/src/wp-admin/includes/class-wp-plugin-install-list-table.php index 73df40f8f1..475c95e8af 100644 --- a/src/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/src/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -488,7 +488,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { } $action_links[] = sprintf( - '%3$s', + '%3$s', esc_url( $activate_url ), esc_attr( sprintf( $button_label, $plugin['name'] ) ), $button_text diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php index a8783f552d..7e2a3d339b 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/wp-admin/includes/class-wp-plugins-list-table.php @@ -367,7 +367,7 @@ class WP_Plugins_List_Table extends WP_List_Table { '; if ( 'recently_activated' == $status ) { - submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false ); + submit_button( __( 'Clear List' ), '', 'clear-recent-list', false ); } elseif ( 'top' === $which && 'mustuse' === $status ) { /* translators: %s: mu-plugins directory name */ echo '

' . sprintf( __( 'Files in the %s directory are executed automatically.' ), diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 7ef790e31a..506dded3fd 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -479,7 +479,7 @@ class WP_Posts_List_Table extends WP_List_Table { */ do_action( 'restrict_manage_posts', $this->screen->post_type, $which ); - submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); + submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); } if ( $this->is_trash && current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts ) ) { @@ -1713,14 +1713,14 @@ class WP_Posts_List_Table extends WP_List_Table { } ?>

- + - + diff --git a/src/wp-admin/includes/class-wp-terms-list-table.php b/src/wp-admin/includes/class-wp-terms-list-table.php index 6e9f9c65ae..257c44a64c 100644 --- a/src/wp-admin/includes/class-wp-terms-list-table.php +++ b/src/wp-admin/includes/class-wp-terms-list-table.php @@ -619,8 +619,8 @@ class WP_Terms_List_Table extends WP_List_Table { ?>

- - + + diff --git a/src/wp-admin/includes/class-wp-theme-install-list-table.php b/src/wp-admin/includes/class-wp-theme-install-list-table.php index 3388732a0f..feb5b9976c 100644 --- a/src/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/src/wp-admin/includes/class-wp-theme-install-list-table.php @@ -329,14 +329,14 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {

- +

- +

- 'save-all', 'style' => 'display: none;' ) ); ?> + 'save-all', 'style' => 'display: none;' ) ); ?> @@ -2382,7 +2382,7 @@ function media_upload_library_form($errors) {

@@ -2509,7 +2509,7 @@ jQuery(function($){

- +

@@ -2612,7 +2612,7 @@ function wp_media_insert_url_form( $default_view = 'image' ) { - ' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . ' + ' . get_submit_button( __( 'Insert into Post' ), '', 'insertonlybutton', false ) . ' diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 2d12faf46a..af1ee22136 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -32,7 +32,7 @@ function post_submit_meta_box( $post, $args = array() ) {
- +
@@ -290,7 +290,7 @@ function attachment_submit_meta_box( $post ) {
- +
@@ -875,7 +875,7 @@ function link_submit_meta_box($link) {
- +
diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php index 30f38e9f56..b1c6f647f2 100644 --- a/src/wp-admin/includes/nav-menu.php +++ b/src/wp-admin/includes/nav-menu.php @@ -284,7 +284,7 @@ function wp_nav_menu_item_link_meta_box() {

- class="button-secondary submit-add-to-menu right" value="" name="add-custom-menu-item" id="submit-customlinkdiv" /> + class="button submit-add-to-menu right" value="" name="add-custom-menu-item" id="submit-customlinkdiv" />

@@ -450,7 +450,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $box ) { - 'submit-quick-search-posttype-' . $post_type_name ) ); ?> + 'submit-quick-search-posttype-' . $post_type_name ) ); ?>

- + - +

@@ -657,7 +657,7 @@ function meta_form( $post = null ) {
- 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?> + 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?>
@@ -1513,7 +1513,7 @@ function find_posts_div($found_action = '') {
- +
@@ -1914,10 +1914,11 @@ function get_submit_button( $text = '', $type = 'primary large', $name = 'submit continue; $classes[] = in_array( $t, $button_shorthand ) ? 'button-' . $t : $t; } - $class = implode( ' ', array_unique( $classes ) ); + // Remove empty items, remove duplicate items, and finally build a string. + $class = implode( ' ', array_unique( array_filter( $classes ) ) ); if ( 'delete' === $type ) - $class = 'button-secondary delete'; + $class = 'button delete'; $text = $text ? $text : __( 'Save Changes' ); diff --git a/src/wp-admin/includes/theme-install.php b/src/wp-admin/includes/theme-install.php index 9333beac9b..31ce5f7971 100644 --- a/src/wp-admin/includes/theme-install.php +++ b/src/wp-admin/includes/theme-install.php @@ -85,7 +85,7 @@ function install_theme_search_form( $type_selector = true ) { - +
- + - +
- 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?> + 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?>

@@ -278,4 +278,4 @@ function wp_widget_control( $sidebar_args ) { */ function wp_widgets_access_body_class($classes) { return "$classes widgets_access "; -} \ No newline at end of file +} diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php index 80b7fbf1f5..d22ff6ca86 100644 --- a/src/wp-admin/install.php +++ b/src/wp-admin/install.php @@ -141,7 +141,7 @@ function display_setup_form( $error = null ) {
- diff --git a/src/wp-admin/js/customize-widgets.js b/src/wp-admin/js/customize-widgets.js index dc1ef823b3..5c956d7e78 100644 --- a/src/wp-admin/js/customize-widgets.js +++ b/src/wp-admin/js/customize-widgets.js @@ -835,7 +835,7 @@ $saveBtn = this.container.find( '.widget-control-save' ); $saveBtn.val( l10n.saveBtnLabel ); $saveBtn.attr( 'title', l10n.saveBtnTooltip ); - $saveBtn.removeClass( 'button-primary' ).addClass( 'button-secondary' ); + $saveBtn.removeClass( 'button-primary' ); $saveBtn.on( 'click', function( e ) { e.preventDefault(); self.updateWidget( { disable_form: true } ); // @todo disable_form is unused? diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index 239829fe32..6c5907dfac 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -1105,7 +1105,7 @@ $message.siblings( '.preview' ).replaceWith( function () { return $( '' ) .attr( 'href', response.customizeUrl ) - .addClass( 'button button-secondary load-customize' ) + .addClass( 'button load-customize' ) .text( wp.updates.l10n.livePreview ); } ); } diff --git a/src/wp-admin/js/widgets.js b/src/wp-admin/js/widgets.js index de64533bdf..aa439ea552 100644 --- a/src/wp-admin/js/widgets.js +++ b/src/wp-admin/js/widgets.js @@ -354,12 +354,12 @@ wpWidgets = { if ( $target.hasClass('button-primary') ) { self.addWidget( chooser ); self.closeChooser(); - } else if ( $target.hasClass('button-secondary') ) { + } else if ( $target.hasClass( 'widgets-chooser-cancel' ) ) { self.closeChooser(); } }).on( 'keyup.widgets-chooser', function( event ) { if ( event.which === $.ui.keyCode.ENTER ) { - if ( $( event.target ).hasClass('button-secondary') ) { + if ( $( event.target ).hasClass( 'widgets-chooser-cancel' ) ) { // Close instead of adding when pressing Enter on the Cancel button self.closeChooser(); } else { diff --git a/src/wp-admin/nav-menus.php b/src/wp-admin/nav-menus.php index 4c383e8dc4..319566c424 100644 --- a/src/wp-admin/nav-menus.php +++ b/src/wp-admin/nav-menus.php @@ -713,7 +713,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); - + create a new menu.' ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0 ), admin_url( 'nav-menus.php' ) ) ) ); ?> diff --git a/src/wp-admin/network/themes.php b/src/wp-admin/network/themes.php index 68b7c77ed3..d6e4e95290 100644 --- a/src/wp-admin/network/themes.php +++ b/src/wp-admin/network/themes.php @@ -158,9 +158,9 @@ if ( $action ) { wp_nonce_field( 'bulk-themes' ); if ( 1 == $themes_to_delete ) { - submit_button( __( 'Yes, delete this theme' ), 'button', 'submit', false ); + submit_button( __( 'Yes, delete this theme' ), '', 'submit', false ); } else { - submit_button( __( 'Yes, delete these themes' ), 'button', 'submit', false ); + submit_button( __( 'Yes, delete these themes' ), '', 'submit', false ); } ?> @@ -168,7 +168,7 @@ if ( $action ) { $referer = wp_get_referer(); ?>
- +
- +
diff --git a/src/wp-admin/plugins.php b/src/wp-admin/plugins.php index 6474e4691f..2ea6b372b3 100644 --- a/src/wp-admin/plugins.php +++ b/src/wp-admin/plugins.php @@ -327,13 +327,13 @@ if ( $action ) { } ?> - +
- +
null ) ) as $a_stylesheet => $a_them } ?> - +
diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php index fc0904c6d2..87163b925f 100644 --- a/src/wp-admin/theme-install.php +++ b/src/wp-admin/theme-install.php @@ -174,7 +174,7 @@ include(ABSPATH . 'wp-admin/admin-header.php'); - +

@@ -262,9 +262,9 @@ if ( $tab ) { <# } #> <# if ( data.customize_url ) { #> - + <# } else { #> - + <# } #> <# } else { #> - + <# } #> @@ -325,7 +325,7 @@ if ( $tab ) { @@ -469,13 +469,13 @@ $can_install = current_user_can( 'install_themes' ); $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); ?> <# if ( data.actions.activate ) { #> - + <# } #> <# if ( ! data.active && data.actions['delete'] ) { #> - + <# } #> diff --git a/src/wp-admin/tools.php b/src/wp-admin/tools.php index b6de3c8183..3ca351be35 100644 --- a/src/wp-admin/tools.php +++ b/src/wp-admin/tools.php @@ -49,7 +49,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );

- @@ -68,7 +68,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );

- +