Changeset 38672
- Timestamp:
- 09/28/2016 07:53:07 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/customize-controls.css
r38648 r38672 1205 1205 */ 1206 1206 1207 /* higher specificity than .wp-core-ui .button -secondary*/1207 /* higher specificity than .wp-core-ui .button */ 1208 1208 #customize-theme-controls .add-new-widget, 1209 1209 #customize-theme-controls .add-new-menu-item { -
trunk/src/wp-admin/css/ie.css
r37740 r38672 222 222 223 223 #wpbody-content input.button, 224 #wpbody-content input.button-primary, 225 #wpbody-content input.button-secondary { 224 #wpbody-content input.button-primary { 226 225 overflow: visible; 227 226 } … … 448 447 } 449 448 450 .tablenav .button -secondary,451 .nav .button -secondary{449 .tablenav .button, 450 .nav .button { 452 451 padding-top: 2px; 453 452 padding-bottom: 2px; … … 508 507 } 509 508 510 .tablenav a.button -secondary{509 .tablenav a.button { 511 510 display: inline-block; 512 511 padding: 2px 5px; -
trunk/src/wp-admin/css/install.css
r38152 r38672 444 444 } 445 445 446 .button -secondary.hide-if-no-js,446 .button.hide-if-no-js, 447 447 .hide-if-no-js { 448 448 display: none; -
trunk/src/wp-admin/css/list-tables.css
r38237 r38672 657 657 } 658 658 659 .tablenav a.button, 659 660 .tablenav a.button-secondary { 660 661 display: block; -
trunk/src/wp-admin/css/themes.css
r38602 r38672 115 115 } 116 116 117 .theme-browser .theme .theme-actions .button -secondary{117 .theme-browser .theme .theme-actions .button { 118 118 float: none; 119 119 margin-left: 3px; -
trunk/src/wp-admin/custom-background.php
r38028 r38672 243 243 <form method="post"> 244 244 <?php wp_nonce_field('custom-background-remove', '_wpnonce-custom-background-remove'); ?> 245 <?php submit_button( __( 'Remove Background Image' ), ' button', 'remove-background', false ); ?><br/>245 <?php submit_button( __( 'Remove Background Image' ), '', 'remove-background', false ); ?><br/> 246 246 <?php _e('This will remove the background image. You will not be able to restore any customizations.') ?> 247 247 </form> … … 257 257 <form method="post"> 258 258 <?php wp_nonce_field('custom-background-reset', '_wpnonce-custom-background-reset'); ?> 259 <?php submit_button( __( 'Restore Original Image' ), ' button', 'reset-background', false ); ?><br/>259 <?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br/> 260 260 <?php _e('This will restore the original background image. You will not be able to restore any customizations.') ?> 261 261 </form> … … 273 273 <input type="hidden" name="action" value="save" /> 274 274 <?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?> 275 <?php submit_button( __( 'Upload' ), ' button', 'submit', false ); ?>275 <?php submit_button( __( 'Upload' ), '', 'submit', false ); ?> 276 276 </p> 277 277 <p> -
trunk/src/wp-admin/custom-header.php
r37914 r38672 577 577 <input type="hidden" name="action" value="save" /> 578 578 <?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ); ?> 579 <?php submit_button( __( 'Upload' ), ' button', 'submit', false ); ?>579 <?php submit_button( __( 'Upload' ), '', 'submit', false ); ?> 580 580 </p> 581 581 <?php … … 635 635 <td> 636 636 <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ) ?></p> 637 <?php submit_button( __( 'Remove Header Image' ), ' button', 'removeheader', false ); ?>637 <?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?> 638 638 </td> 639 639 </tr> … … 646 646 <td> 647 647 <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ) ?></p> 648 <?php submit_button( __( 'Restore Original Header Image' ), ' button', 'resetheader', false ); ?>648 <?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?> 649 649 </td> 650 650 </tr> … … 824 824 <?php 825 825 if ( isset( $oitar ) && 1 == $oitar && ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) 826 submit_button( __( 'Skip Cropping, Publish Image as Is' ), ' secondary', 'skip-cropping', false );826 submit_button( __( 'Skip Cropping, Publish Image as Is' ), '', 'skip-cropping', false ); 827 827 ?> 828 828 </p> -
trunk/src/wp-admin/customize.php
r38648 r38672 169 169 </div> 170 170 <?php endif; ?> 171 <button type="button" class="collapse-sidebar button -secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">171 <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>"> 172 172 <span class="collapse-sidebar-arrow"></span> 173 173 <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span> -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r38334 r38672 352 352 */ 353 353 do_action( 'restrict_manage_comments' ); 354 submit_button( __( 'Filter' ), ' button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );354 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); 355 355 } 356 356 -
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r36808 r38672 113 113 echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>'; 114 114 wp_dropdown_categories( $dropdown_options ); 115 submit_button( __( 'Filter' ), ' button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );115 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); 116 116 ?> 117 117 </div> -
trunk/src/wp-admin/includes/class-wp-list-table.php
r38647 r38672 362 362 <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label> 363 363 <input type="search" id="<?php echo esc_attr( $input_id ); ?>" name="s" value="<?php _admin_search_query(); ?>" /> 364 <?php submit_button( $text, ' button', '', false, array( 'id' => 'search-submit' ) ); ?>364 <?php submit_button( $text, '', '', false, array( 'id' => 'search-submit' ) ); ?> 365 365 </p> 366 366 <?php -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r38031 r38672 175 175 do_action( 'restrict_manage_posts', $this->screen->post_type ); 176 176 177 submit_button( __( 'Filter' ), ' button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );177 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); 178 178 } 179 179 -
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r38459 r38672 489 489 490 490 $action_links[] = sprintf( 491 '<a href="%1$s" class="button activate-now button-secondary" aria-label="%2$s">%3$s</a>',491 '<a href="%1$s" class="button activate-now" aria-label="%2$s">%3$s</a>', 492 492 esc_url( $activate_url ), 493 493 esc_attr( sprintf( $button_label, $plugin['name'] ) ), -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r38307 r38672 368 368 <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label> 369 369 <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>"/> 370 <?php submit_button( $text, ' buttonhide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?>370 <?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?> 371 371 </p> 372 372 <?php … … 497 497 498 498 if ( 'recently_activated' == $status ) { 499 submit_button( __( 'Clear List' ), ' button', 'clear-recent-list', false );499 submit_button( __( 'Clear List' ), '', 'clear-recent-list', false ); 500 500 } elseif ( 'top' === $which && 'mustuse' === $status ) { 501 501 /* translators: %s: mu-plugins directory name */ -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r38024 r38672 480 480 do_action( 'restrict_manage_posts', $this->screen->post_type, $which ); 481 481 482 submit_button( __( 'Filter' ), ' button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );482 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); 483 483 } 484 484 … … 1714 1714 ?> 1715 1715 <p class="submit inline-edit-save"> 1716 <button type="button" class="button -secondarycancel alignleft"><?php _e( 'Cancel' ); ?></button>1716 <button type="button" class="button cancel alignleft"><?php _e( 'Cancel' ); ?></button> 1717 1717 <?php if ( ! $bulk ) { 1718 1718 wp_nonce_field( 'inlineeditnonce', '_inline_edit', false ); 1719 1719 ?> 1720 <button type="button" class="button -primary save alignright"><?php _e( 'Update' ); ?></button>1720 <button type="button" class="button button-primary save alignright"><?php _e( 'Update' ); ?></button> 1721 1721 <span class="spinner"></span> 1722 1722 <?php } else { 1723 submit_button( __( 'Update' ), ' button-primary alignright', 'bulk_edit', false );1723 submit_button( __( 'Update' ), 'primary alignright', 'bulk_edit', false ); 1724 1724 } ?> 1725 1725 <input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" /> -
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r38489 r38672 620 620 621 621 <p class="inline-edit-save submit"> 622 <button type="button" class="cancel button -secondaryalignleft"><?php _e( 'Cancel' ); ?></button>623 <button type="button" class="save button -primary alignright"><?php echo $tax->labels->update_item; ?></button>622 <button type="button" class="cancel button alignleft"><?php _e( 'Cancel' ); ?></button> 623 <button type="button" class="save button button-primary alignright"><?php echo $tax->labels->update_item; ?></button> 624 624 <span class="spinner"></span> 625 625 <span class="error" style="display:none;"></span> -
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r38307 r38672 330 330 <div class="wp-full-overlay-sidebar"> 331 331 <div class="wp-full-overlay-header"> 332 <a href="#" class="close-full-overlay button -secondary"><?php _e( 'Close' ); ?></a>332 <a href="#" class="close-full-overlay button"><?php _e( 'Close' ); ?></a> 333 333 <span class="theme-install"></span> 334 334 </div> … … 337 337 </div> 338 338 <div class="wp-full-overlay-footer"> 339 <button type="button" class="collapse-sidebar button -secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">339 <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>"> 340 340 <span class="collapse-sidebar-arrow"></span> 341 341 <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span> … … 399 399 switch ( $status ) { 400 400 case 'update_available': 401 echo '<a class="theme-install button -primary" href="' . esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ) . '">' . __( 'Update' ) . '</a>';401 echo '<a class="theme-install button button-primary" href="' . esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ) . '">' . __( 'Update' ) . '</a>'; 402 402 break; 403 403 case 'newer_installed': … … 407 407 case 'install': 408 408 default: 409 echo '<a class="theme-install button -primary" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '">' . __( 'Install' ) . '</a>';409 echo '<a class="theme-install button button-primary" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '">' . __( 'Install' ) . '</a>'; 410 410 break; 411 411 } ?> -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r37488 r38672 268 268 </select> 269 269 <?php 270 submit_button( __( 'Change' ), ' button', 'changeit', false );270 submit_button( __( 'Change' ), '', 'changeit', false ); 271 271 endif; 272 272 -
trunk/src/wp-admin/includes/dashboard.php
r38459 r38672 428 428 <label class="screen-reader-text" for="search-users"><?php _e( 'Search Users' ); ?></label> 429 429 <input type="search" name="s" value="" size="30" autocomplete="off" id="search-users"/> 430 <?php submit_button( __( 'Search Users' ), ' button', false, false, array( 'id' => 'submit_users' ) ); ?>430 <?php submit_button( __( 'Search Users' ), '', false, false, array( 'id' => 'submit_users' ) ); ?> 431 431 </p> 432 432 </form> … … 436 436 <label class="screen-reader-text" for="search-sites"><?php _e( 'Search Sites' ); ?></label> 437 437 <input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites"/> 438 <?php submit_button( __( 'Search Sites' ), ' button', false, false, array( 'id' => 'submit_sites' ) ); ?>438 <?php submit_button( __( 'Search Sites' ), '', false, false, array( 'id' => 'submit_sites' ) ); ?> 439 439 </p> 440 440 </form> -
trunk/src/wp-admin/includes/file.php
r38470 r38672 1262 1262 <p class="request-filesystem-credentials-action-buttons"> 1263 1263 <button class="button cancel-button" data-js-action="close" type="button"><?php _e( 'Cancel' ); ?></button> 1264 <?php submit_button( __( 'Proceed' ), ' button', 'upgrade', false ); ?>1264 <?php submit_button( __( 'Proceed' ), '', 'upgrade', false ); ?> 1265 1265 </p> 1266 1266 </div> -
trunk/src/wp-admin/includes/media.php
r38614 r38672 1481 1481 1482 1482 if ( $r['send'] ) { 1483 $r['send'] = get_submit_button( __( 'Insert into Post' ), ' button', "send[$attachment_id]", false );1483 $r['send'] = get_submit_button( __( 'Insert into Post' ), '', "send[$attachment_id]", false ); 1484 1484 } 1485 1485 … … 2032 2032 2033 2033 <p class="savebutton ml-submit"> 2034 <?php submit_button( __( 'Save all changes' ), ' button', 'save', false ); ?>2034 <?php submit_button( __( 'Save all changes' ), '', 'save', false ); ?> 2035 2035 </p> 2036 2036 </form> … … 2243 2243 2244 2244 <p class="ml-submit"> 2245 <?php submit_button( __( 'Save all changes' ), ' buttonsavebutton', 'save', false, array( 'id' => 'save-all', 'style' => 'display: none;' ) ); ?>2245 <?php submit_button( __( 'Save all changes' ), 'savebutton', 'save', false, array( 'id' => 'save-all', 'style' => 'display: none;' ) ); ?> 2246 2246 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 2247 2247 <input type="hidden" name="type" value="<?php echo esc_attr( $GLOBALS['type'] ); ?>" /> … … 2383 2383 <label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label> 2384 2384 <input type="search" id="media-search-input" name="s" value="<?php the_search_query(); ?>" /> 2385 <?php submit_button( __( 'Search Media' ), ' button', '', false ); ?>2385 <?php submit_button( __( 'Search Media' ), '', '', false ); ?> 2386 2386 </p> 2387 2387 … … 2480 2480 <?php } ?> 2481 2481 2482 <?php submit_button( __( 'Filter »' ), ' button', 'post-query-submit', false ); ?>2482 <?php submit_button( __( 'Filter »' ), '', 'post-query-submit', false ); ?> 2483 2483 2484 2484 </div> … … 2510 2510 </div> 2511 2511 <p class="ml-submit"> 2512 <?php submit_button( __( 'Save all changes' ), ' buttonsavebutton', 'save', false ); ?>2512 <?php submit_button( __( 'Save all changes' ), 'savebutton', 'save', false ); ?> 2513 2513 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 2514 2514 </p> … … 2613 2613 <td></td> 2614 2614 <td> 2615 ' . get_submit_button( __( 'Insert into Post' ), ' button', 'insertonlybutton', false ) . '2615 ' . get_submit_button( __( 'Insert into Post' ), '', 'insertonlybutton', false ) . ' 2616 2616 </td> 2617 2617 </tr> -
trunk/src/wp-admin/includes/meta-boxes.php
r38616 r38672 33 33 <?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?> 34 34 <div style="display:none;"> 35 <?php submit_button( __( 'Save' ), ' button', 'save' ); ?>35 <?php submit_button( __( 'Save' ), '', 'save' ); ?> 36 36 </div> 37 37 … … 291 291 <?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?> 292 292 <div style="display:none;"> 293 <?php submit_button( __( 'Save' ), ' button', 'save' ); ?>293 <?php submit_button( __( 'Save' ), '', 'save' ); ?> 294 294 </div> 295 295 … … 876 876 <?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?> 877 877 <div style="display:none;"> 878 <?php submit_button( __( 'Save' ), ' button', 'save', false ); ?>878 <?php submit_button( __( 'Save' ), '', 'save', false ); ?> 879 879 </div> 880 880 -
trunk/src/wp-admin/includes/nav-menu.php
r38584 r38672 285 285 <p class="button-controls wp-clearfix"> 286 286 <span class="add-to-menu"> 287 <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button -secondarysubmit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-custom-menu-item" id="submit-customlinkdiv" />287 <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-custom-menu-item" id="submit-customlinkdiv" /> 288 288 <span class="spinner"></span> 289 289 </span> … … 451 451 <input type="search" class="quick-search" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" id="quick-search-posttype-<?php echo $post_type_name; ?>" /> 452 452 <span class="spinner"></span> 453 <?php submit_button( __( 'Search' ), ' button-small quick-search-submit button-secondaryhide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>453 <?php submit_button( __( 'Search' ), 'small quick-search-submit hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?> 454 454 </p> 455 455 … … 573 573 574 574 <span class="add-to-menu"> 575 <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button -secondarysubmit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-post-type-menu-item" id="<?php echo esc_attr( 'submit-posttype-' . $post_type_name ); ?>" />575 <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-post-type-menu-item" id="<?php echo esc_attr( 'submit-posttype-' . $post_type_name ); ?>" /> 576 576 <span class="spinner"></span> 577 577 </span> … … 740 740 <input type="search" class="quick-search" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" id="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" /> 741 741 <span class="spinner"></span> 742 <?php submit_button( __( 'Search' ), ' button-small quick-search-submit button-secondaryhide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>742 <?php submit_button( __( 'Search' ), 'small quick-search-submit hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?> 743 743 </p> 744 744 … … 771 771 772 772 <span class="add-to-menu"> 773 <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button -secondarysubmit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-taxonomy-menu-item" id="<?php echo esc_attr( 'submit-taxonomy-' . $taxonomy_name ); ?>" />773 <input type="submit"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-taxonomy-menu-item" id="<?php echo esc_attr( 'submit-taxonomy-' . $taxonomy_name ); ?>" /> 774 774 <span class="spinner"></span> 775 775 </span> -
trunk/src/wp-admin/includes/plugin-install.php
r38459 r38672 266 266 <input type="search" name="s" value="<?php echo esc_attr( $term ) ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search Plugins' ); ?>" /> 267 267 </label> 268 <?php submit_button( __( 'Search Plugins' ), ' buttonhide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>268 <?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?> 269 269 </form><?php 270 270 } … … 282 282 <label class="screen-reader-text" for="pluginzip"><?php _e( 'Plugin zip file' ); ?></label> 283 283 <input type="file" id="pluginzip" name="pluginzip" /> 284 <?php submit_button( __( 'Install Now' ), ' button', 'install-plugin-submit', false ); ?>284 <?php submit_button( __( 'Install Now' ), '', 'install-plugin-submit', false ); ?> 285 285 </form> 286 286 </div> -
trunk/src/wp-admin/includes/template.php
r38470 r38672 424 424 425 425 <p id="replysubmit" class="submit"> 426 <a href="#comments-form" class="save button -primary alignright">426 <a href="#comments-form" class="save button button-primary alignright"> 427 427 <span id="addbtn" style="display:none;"><?php _e('Add Comment'); ?></span> 428 428 <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span> 429 429 <span id="replybtn" style="display:none;"><?php _e('Submit Reply'); ?></span></a> 430 <a href="#comments-form" class="cancel button -secondaryalignleft"><?php _e('Cancel'); ?></a>430 <a href="#comments-form" class="cancel button alignleft"><?php _e('Cancel'); ?></a> 431 431 <span class="waiting spinner"></span> 432 432 <span class="error" style="display:none;"></span> … … 658 658 <tr><td colspan="2"> 659 659 <div class="submit"> 660 <?php submit_button( __( 'Add Custom Field' ), ' secondary', 'addmeta', false, array( 'id' => 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?>660 <?php submit_button( __( 'Add Custom Field' ), '', 'addmeta', false, array( 'id' => 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?> 661 661 </div> 662 662 <?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?> … … 1514 1514 </div> 1515 1515 <div class="find-box-buttons"> 1516 <?php submit_button( __( 'Select' ), ' button-primary alignright', 'find-posts-submit', false ); ?>1516 <?php submit_button( __( 'Select' ), 'primary alignright', 'find-posts-submit', false ); ?> 1517 1517 <div class="clear"></div> 1518 1518 </div> … … 1915 1915 $classes[] = in_array( $t, $button_shorthand ) ? 'button-' . $t : $t; 1916 1916 } 1917 $class = implode( ' ', array_unique( $classes ) ); 1917 // Remove empty items, remove duplicate items, and finally build a string. 1918 $class = implode( ' ', array_unique( array_filter( $classes ) ) ); 1918 1919 1919 1920 if ( 'delete' === $type ) 1920 $class = 'button -secondarydelete';1921 $class = 'button delete'; 1921 1922 1922 1923 $text = $text ? $text : __( 'Save Changes' ); -
trunk/src/wp-admin/includes/theme-install.php
r37985 r38672 86 86 <?php endif; ?> 87 87 <input type="search" name="s" id="s" size="30" value="<?php echo esc_attr($term) ?>" autofocus="autofocus" /> 88 <?php submit_button( __( 'Search' ), ' button', 'search', false ); ?>88 <?php submit_button( __( 'Search' ), '', 'search', false ); ?> 89 89 </form> 90 90 <?php … … 131 131 </div> 132 132 <br class="clear" /> 133 <?php submit_button( __( 'Find Themes' ), ' button', 'search' ); ?>133 <?php submit_button( __( 'Find Themes' ), '', 'search' ); ?> 134 134 </form> 135 135 <?php … … 146 146 <label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label> 147 147 <input type="file" id="themezip" name="themezip" /> 148 <?php submit_button( __( 'Install Now' ), ' button', 'install-theme-submit', false ); ?>148 <?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?> 149 149 </form> 150 150 <?php -
trunk/src/wp-admin/includes/widgets.php
r35015 r38672 255 255 </div> 256 256 <div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>"> 257 <?php submit_button( __( 'Save' ), ' button-primary widget-control-save right', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?>257 <?php submit_button( __( 'Save' ), 'primary widget-control-save right', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?> 258 258 <span class="spinner"></span> 259 259 </div> -
trunk/src/wp-admin/install.php
r38619 r38672 142 142 <?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?> 143 143 <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" /> 144 <button type="button" class="button button-secondarywp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">144 <button type="button" class="button wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['admin_password'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 145 145 <span class="dashicons dashicons-hidden"></span> 146 146 <span class="text"><?php _e( 'Hide' ); ?></span> -
trunk/src/wp-admin/js/customize-widgets.js
r38668 r38672 836 836 $saveBtn.val( l10n.saveBtnLabel ); 837 837 $saveBtn.attr( 'title', l10n.saveBtnTooltip ); 838 $saveBtn.removeClass( 'button-primary' ) .addClass( 'button-secondary' );838 $saveBtn.removeClass( 'button-primary' ); 839 839 $saveBtn.on( 'click', function( e ) { 840 840 e.preventDefault(); -
trunk/src/wp-admin/js/updates.js
r38240 r38672 1106 1106 return $( '<a>' ) 1107 1107 .attr( 'href', response.customizeUrl ) 1108 .addClass( 'button button-secondaryload-customize' )1108 .addClass( 'button load-customize' ) 1109 1109 .text( wp.updates.l10n.livePreview ); 1110 1110 } ); -
trunk/src/wp-admin/js/widgets.js
r35317 r38672 355 355 self.addWidget( chooser ); 356 356 self.closeChooser(); 357 } else if ( $target.hasClass( 'button-secondary') ) {357 } else if ( $target.hasClass( 'widgets-chooser-cancel' ) ) { 358 358 self.closeChooser(); 359 359 } 360 360 }).on( 'keyup.widgets-chooser', function( event ) { 361 361 if ( event.which === $.ui.keyCode.ENTER ) { 362 if ( $( event.target ).hasClass( 'button-secondary') ) {362 if ( $( event.target ).hasClass( 'widgets-chooser-cancel' ) ) { 363 363 // Close instead of adding when pressing Enter on the Cancel button 364 364 self.closeChooser(); -
trunk/src/wp-admin/nav-menus.php
r38616 r38672 714 714 <?php endforeach; ?> 715 715 </select> 716 <span class="submit-btn"><input type="submit" class="button -secondary" value="<?php esc_attr_e( 'Select' ); ?>"></span>716 <span class="submit-btn"><input type="submit" class="button" value="<?php esc_attr_e( 'Select' ); ?>"></span> 717 717 <span class="add-new-menu-action"> 718 718 <?php printf( __( 'or <a href="%s">create a new menu</a>.' ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0 ), admin_url( 'nav-menus.php' ) ) ) ); ?> -
trunk/src/wp-admin/network/themes.php
r38657 r38672 159 159 160 160 if ( 1 == $themes_to_delete ) { 161 submit_button( __( 'Yes, delete this theme' ), ' button', 'submit', false );161 submit_button( __( 'Yes, delete this theme' ), '', 'submit', false ); 162 162 } else { 163 submit_button( __( 'Yes, delete these themes' ), ' button', 'submit', false );163 submit_button( __( 'Yes, delete these themes' ), '', 'submit', false ); 164 164 } 165 165 ?> … … 169 169 ?> 170 170 <form method="post" action="<?php echo $referer ? esc_url( $referer ) : ''; ?>" style="display:inline;"> 171 <?php submit_button( __( 'No, return me to the theme list' ), ' button', 'submit', false ); ?>171 <?php submit_button( __( 'No, return me to the theme list' ), '', 'submit', false ); ?> 172 172 </form> 173 173 </div> -
trunk/src/wp-admin/plugin-editor.php
r38459 r38672 225 225 ?> 226 226 </select> 227 <?php submit_button( __( 'Select' ), ' button', 'Submit', false ); ?>227 <?php submit_button( __( 'Select' ), '', 'Submit', false ); ?> 228 228 </form> 229 229 </div> -
trunk/src/wp-admin/plugins.php
r38647 r38672 328 328 ?> 329 329 <?php wp_nonce_field('bulk-plugins') ?> 330 <?php submit_button( $data_to_delete ? __( 'Yes, delete these files and data' ) : __( 'Yes, delete these files' ), ' button', 'submit', false ); ?>330 <?php submit_button( $data_to_delete ? __( 'Yes, delete these files and data' ) : __( 'Yes, delete these files' ), '', 'submit', false ); ?> 331 331 </form> 332 332 <?php … … 334 334 ?> 335 335 <form method="post" action="<?php echo $referer ? esc_url( $referer ) : ''; ?>" style="display:inline;"> 336 <?php submit_button( __( 'No, return me to the plugin list' ), ' button', 'submit', false ); ?>336 <?php submit_button( __( 'No, return me to the plugin list' ), '', 'submit', false ); ?> 337 337 </form> 338 338 </div> -
trunk/src/wp-admin/theme-editor.php
r38459 r38672 183 183 ?> 184 184 </select> 185 <?php submit_button( __( 'Select' ), ' button', 'Submit', false ); ?>185 <?php submit_button( __( 'Select' ), '', 'Submit', false ); ?> 186 186 </form> 187 187 </div> -
trunk/src/wp-admin/theme-install.php
r38640 r38672 175 175 <input type="hidden" id="wporg-username-nonce" name="_wpnonce" value="<?php echo esc_attr( wp_create_nonce( $action ) ); ?>" /> 176 176 <input type="search" id="wporg-username-input" value="<?php echo esc_attr( $user ); ?>" /> 177 <input type="button" class="button button-secondaryfavorites-form-submit" value="<?php esc_attr_e( 'Get Favorites' ); ?>" />177 <input type="button" class="button favorites-form-submit" value="<?php esc_attr_e( 'Get Favorites' ); ?>" /> 178 178 </p> 179 179 </div> … … 263 263 <# } #> 264 264 <# if ( data.customize_url ) { #> 265 <a class="button button-secondaryload-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a>265 <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a> 266 266 <# } else { #> 267 <button class="button -secondarypreview install-theme-preview"><?php _e( 'Preview' ); ?></button>267 <button class="button preview install-theme-preview"><?php _e( 'Preview' ); ?></button> 268 268 <# } #> 269 269 <# } else { #> … … 273 273 ?> 274 274 <a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a> 275 <button class="button -secondarypreview install-theme-preview"><?php _e( 'Preview' ); ?></button>275 <button class="button preview install-theme-preview"><?php _e( 'Preview' ); ?></button> 276 276 <# } #> 277 277 </div> … … 326 326 </div> 327 327 <div class="wp-full-overlay-footer"> 328 <button type="button" class="collapse-sidebar button -secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">328 <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>"> 329 329 <span class="collapse-sidebar-arrow"></span> 330 330 <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span> -
trunk/src/wp-admin/themes.php
r38325 r38672 201 201 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 202 202 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 203 $current_theme_actions[] = "<a class='button button-secondary$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>";203 $current_theme_actions[] = "<a class='button$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 204 204 else 205 $current_theme_actions[] = "<a class='button button-secondary$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>";205 $current_theme_actions[] = "<a class='button$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 206 206 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { 207 207 $menu_file = $item[2]; … … 209 209 if ( current_user_can( 'customize' ) ) { 210 210 if ( 'custom-header' === $menu_file ) { 211 $current_theme_actions[] = "<a class='button button-secondaryhide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>";211 $current_theme_actions[] = "<a class='button hide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>"; 212 212 } elseif ( 'custom-background' === $menu_file ) { 213 $current_theme_actions[] = "<a class='button button-secondaryhide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>";213 $current_theme_actions[] = "<a class='button hide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>"; 214 214 } 215 215 } … … 220 220 221 221 if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) { 222 $current_theme_actions[] = "<a class='button button-secondary$class' href='{$item[2]}'>{$item[0]}</a>";222 $current_theme_actions[] = "<a class='button$class' href='{$item[2]}'>{$item[0]}</a>"; 223 223 } else { 224 $current_theme_actions[] = "<a class='button button-secondary$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>";224 $current_theme_actions[] = "<a class='button$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>"; 225 225 } 226 226 } … … 282 282 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 283 283 ?> 284 <a class="button button-secondaryactivate" href="<?php echo $theme['actions']['activate']; ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>284 <a class="button activate" href="<?php echo $theme['actions']['activate']; ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 285 285 <?php if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { ?> 286 286 <a class="button button-primary load-customize hide-if-no-customize" href="<?php echo $theme['actions']['customize']; ?>"><?php _e( 'Live Preview' ); ?></a> … … 334 334 $delete_url = wp_nonce_url( $delete_url, 'delete-theme_' . $stylesheet ); 335 335 ?> 336 <td><a href="<?php echo esc_url( $delete_url ); ?>" class="button button-secondarydelete-theme"><?php _e( 'Delete' ); ?></a></td>336 <td><a href="<?php echo esc_url( $delete_url ); ?>" class="button delete-theme"><?php _e( 'Delete' ); ?></a></td> 337 337 <?php 338 338 } … … 349 349 $install_url = wp_nonce_url( $install_url, 'install-theme_' . $parent_theme_name ); 350 350 ?> 351 <td><a href="<?php echo esc_url( $install_url ); ?>" class="button button-secondaryinstall-theme"><?php _e( 'Install Parent Theme' ); ?></a></td>351 <td><a href="<?php echo esc_url( $install_url ); ?>" class="button install-theme"><?php _e( 'Install Parent Theme' ); ?></a></td> 352 352 <?php 353 353 } … … 411 411 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 412 412 ?> 413 <a class="button button-secondaryactivate" href="{{{ data.actions.activate }}}" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a>413 <a class="button activate" href="{{{ data.actions.activate }}}" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a> 414 414 <a class="button button-primary load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Live Preview' ); ?></a> 415 415 <# } #> … … 470 470 ?> 471 471 <# if ( data.actions.activate ) { #> 472 <a href="{{{ data.actions.activate }}}" class="button button-secondaryactivate" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a>472 <a href="{{{ data.actions.activate }}}" class="button activate" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a> 473 473 <# } #> 474 474 <a href="{{{ data.actions.customize }}}" class="button button-primary load-customize hide-if-no-customize"><?php _e( 'Live Preview' ); ?></a> … … 476 476 477 477 <# if ( ! data.active && data.actions['delete'] ) { #> 478 <a href="{{{ data.actions['delete'] }}}" class="button button-secondarydelete-theme"><?php _e( 'Delete' ); ?></a>478 <a href="{{{ data.actions['delete'] }}}" class="button delete-theme"><?php _e( 'Delete' ); ?></a> 479 479 <# } #> 480 480 </div> -
trunk/src/wp-admin/tools.php
r33819 r38672 50 50 <p class="pressthis-bookmarklet-wrapper"> 51 51 <a class="pressthis-bookmarklet" onclick="return false;" href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>"><span><?php _e( 'Press This' ); ?></span></a> 52 <button type="button" class="button button-secondarypressthis-js-toggle js-show-pressthis-code-wrap" aria-expanded="false" aria-controls="pressthis-code-wrap">52 <button type="button" class="button pressthis-js-toggle js-show-pressthis-code-wrap" aria-expanded="false" aria-controls="pressthis-code-wrap"> 53 53 <span class="dashicons dashicons-clipboard"></span> 54 54 <span class="screen-reader-text"><?php _e( 'Copy “Press This” bookmarklet code' ) ?></span> … … 69 69 70 70 <p> 71 <a class="button button-secondary" href="<?php echo htmlspecialchars( admin_url( 'press-this.php' ) ); ?>"><?php _e( 'Open Press This' ) ?></a>71 <a class="button" href="<?php echo htmlspecialchars( admin_url( 'press-this.php' ) ); ?>"><?php _e( 'Open Press This' ) ?></a> 72 72 </p> 73 73 <script> -
trunk/src/wp-admin/update-core.php
r38470 r38672 93 93 if ( $show_buttons ) { 94 94 if ( $first_pass ) { 95 submit_button( $submit, $current ? ' button' : 'primary regular', 'upgrade', false );95 submit_button( $submit, $current ? '' : 'primary regular', 'upgrade', false ); 96 96 $first_pass = false; 97 97 } else { 98 submit_button( $submit, ' button', 'upgrade', false );98 submit_button( $submit, '', 'upgrade', false ); 99 99 } 100 100 echo ' <a href="' . esc_url( $update->download ) . '" class="button">' . $download . '</a> '; … … 102 102 if ( 'en_US' != $update->locale ) 103 103 if ( !isset( $update->dismissed ) || !$update->dismissed ) 104 submit_button( __( 'Hide this update'), 'button', 'dismiss', false );104 submit_button( __( 'Hide this update' ), '', 'dismiss', false ); 105 105 else 106 submit_button( __( 'Bring back this update'), 'button', 'undismiss', false );106 submit_button( __( 'Bring back this update' ), '', 'undismiss', false ); 107 107 echo '</p>'; 108 108 if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) ) -
trunk/src/wp-admin/user-edit.php
r38481 r38672 506 506 <td> 507 507 <input class="hidden" value=" " /><!-- #24364 workaround --> 508 <button type="button" class="button button-secondarywp-generate-pw hide-if-no-js"><?php _e( 'Generate Password' ); ?></button>508 <button type="button" class="button wp-generate-pw hide-if-no-js"><?php _e( 'Generate Password' ); ?></button> 509 509 <div class="wp-pwd hide-if-js"> 510 510 <span class="password-input-wrapper"> 511 511 <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" /> 512 512 </span> 513 <button type="button" class="button button-secondarywp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">513 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 514 514 <span class="dashicons dashicons-hidden"></span> 515 515 <span class="text"><?php _e( 'Hide' ); ?></span> 516 516 </button> 517 <button type="button" class="button button-secondarywp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change' ); ?>">517 <button type="button" class="button wp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change' ); ?>"> 518 518 <span class="text"><?php _e( 'Cancel' ); ?></span> 519 519 </button> … … 545 545 <th><?php _e( 'Sessions' ); ?></th> 546 546 <td aria-live="assertive"> 547 <div class="destroy-sessions"><button type="button" disabled class="button button-secondary"><?php _e( 'Log Out Everywhere Else' ); ?></button></div>547 <div class="destroy-sessions"><button type="button" disabled class="button"><?php _e( 'Log Out Everywhere Else' ); ?></button></div> 548 548 <p class="description"> 549 549 <?php _e( 'You are only logged in at this location.' ); ?> … … 555 555 <th><?php _e( 'Sessions' ); ?></th> 556 556 <td aria-live="assertive"> 557 <div class="destroy-sessions"><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out Everywhere Else' ); ?></button></div>557 <div class="destroy-sessions"><button type="button" class="button" id="destroy-sessions"><?php _e( 'Log Out Everywhere Else' ); ?></button></div> 558 558 <p class="description"> 559 559 <?php _e( 'Did you lose your phone or leave your account logged in at a public computer? You can log out everywhere else, and stay logged in here.' ); ?> … … 565 565 <th><?php _e( 'Sessions' ); ?></th> 566 566 <td> 567 <p><button type="button" class="button button-secondary" id="destroy-sessions"><?php _e( 'Log Out Everywhere' ); ?></button></p>567 <p><button type="button" class="button" id="destroy-sessions"><?php _e( 'Log Out Everywhere' ); ?></button></p> 568 568 <p class="description"> 569 569 <?php -
trunk/src/wp-admin/user-new.php
r38329 r38672 422 422 <td> 423 423 <input class="hidden" value=" " /><!-- #24364 workaround --> 424 <button type="button" class="button button-secondarywp-generate-pw hide-if-no-js"><?php _e( 'Show password' ); ?></button>424 <button type="button" class="button wp-generate-pw hide-if-no-js"><?php _e( 'Show password' ); ?></button> 425 425 <div class="wp-pwd hide-if-js"> 426 426 <?php $initial_password = wp_generate_password( 24 ); ?> … … 428 428 <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" /> 429 429 </span> 430 <button type="button" class="button button-secondarywp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">430 <button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>"> 431 431 <span class="dashicons dashicons-hidden"></span> 432 432 <span class="text"><?php _e( 'Hide' ); ?></span> 433 433 </button> 434 <button type="button" class="button button-secondarywp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change' ); ?>">434 <button type="button" class="button wp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change' ); ?>"> 435 435 <span class="text"><?php _e( 'Cancel' ); ?></span> 436 436 </button> -
trunk/src/wp-admin/widgets.php
r37914 r38672 316 316 <?php 317 317 } else { 318 submit_button( __( 'Delete' ), ' buttonalignleft', 'removewidget', false );319 } 320 submit_button( __( 'Save Widget' ), ' button-primary alignright', 'savewidget', false ); ?>318 submit_button( __( 'Delete' ), 'alignleft', 'removewidget', false ); 319 } 320 submit_button( __( 'Save Widget' ), 'primary alignright', 'savewidget', false ); ?> 321 321 <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($widget_id); ?>" /> 322 322 <input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr($id_base); ?>" /> … … 501 501 <ul class="widgets-chooser-sidebars"></ul> 502 502 <div class="widgets-chooser-actions"> 503 <button class="button -secondary"><?php _e( 'Cancel' ); ?></button>504 <button class="button -primary"><?php _e( 'Add Widget' ); ?></button>503 <button class="button widgets-chooser-cancel"><?php _e( 'Cancel' ); ?></button> 504 <button class="button button-primary widgets-chooser-add"><?php _e( 'Add Widget' ); ?></button> 505 505 </div> 506 506 </div> -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r38618 r38672 915 915 <p class="button-controls"> 916 916 <span class="add-to-menu"> 917 <input type="submit" class="button -secondarysubmit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-custom-menu-item" id="custom-menu-item-submit">917 <input type="submit" class="button submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu' ); ?>" name="add-custom-menu-item" id="custom-menu-item-submit"> 918 918 <span class="spinner"></span> 919 919 </span> -
trunk/src/wp-includes/class-wp-customize-widgets.php
r37539 r38672 713 713 </ul> 714 714 <div class="move-widget-actions"> 715 <button class="move-widget-btn button -secondary" type="button">{btn}</button>715 <button class="move-widget-btn button" type="button">{btn}</button> 716 716 </div> 717 717 </div>' -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-control.php
r38080 r38672 49 49 public function content_template() { 50 50 ?> 51 <button type="button" class="button -secondaryadd-new-menu-item" aria-label="<?php esc_attr_e( 'Add or remove menu items' ); ?>" aria-expanded="false" aria-controls="available-menu-items">51 <button type="button" class="button add-new-menu-item" aria-label="<?php esc_attr_e( 'Add or remove menu items' ); ?>" aria-expanded="false" aria-controls="available-menu-items"> 52 52 <?php _e( 'Add Items' ); ?> 53 53 </button> -
trunk/src/wp-includes/customize/class-wp-customize-new-menu-section.php
r35385 r38672 37 37 ?> 38 38 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu"> 39 <button type="button" class="button -secondaryadd-new-menu-item add-menu-toggle" aria-expanded="false">39 <button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false"> 40 40 <?php echo esc_html( $this->title ); ?> 41 41 </button> -
trunk/src/wp-includes/customize/class-wp-widget-area-customize-control.php
r35636 r38672 58 58 $id = 'reorder-widgets-desc-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); 59 59 ?> 60 <button type="button" class="button -secondaryadd-new-widget" aria-expanded="false" aria-controls="available-widgets">60 <button type="button" class="button add-new-widget" aria-expanded="false" aria-controls="available-widgets"> 61 61 <?php _e( 'Add a Widget' ); ?> 62 62 </button> -
trunk/src/wp-includes/general-template.php
r38495 r38672 482 482 ' . ( $args['remember'] ? '<p class="login-remember"><label><input name="rememberme" type="checkbox" id="' . esc_attr( $args['id_remember'] ) . '" value="forever"' . ( $args['value_remember'] ? ' checked="checked"' : '' ) . ' /> ' . esc_html( $args['label_remember'] ) . '</label></p>' : '' ) . ' 483 483 <p class="login-submit"> 484 <input type="submit" name="wp-submit" id="' . esc_attr( $args['id_submit'] ) . '" class="button -primary" value="' . esc_attr( $args['label_log_in'] ) . '" />484 <input type="submit" name="wp-submit" id="' . esc_attr( $args['id_submit'] ) . '" class="button button-primary" value="' . esc_attr( $args['label_log_in'] ) . '" /> 485 485 <input type="hidden" name="redirect_to" value="' . esc_url( $args['redirect'] ) . '" /> 486 486 </p> -
trunk/tests/qunit/fixtures/customize-menus.js
r38049 r38672 379 379 'type': 'new_menu', 380 380 'title': 'Add a Menu', 381 'content': '<li id="accordion-section-add_menu" class="accordion-section-new-menu">\n\t\t\t<button type="button" class="button -secondaryadd-new-menu-item add-menu-toggle" aria-expanded="false">\n\t\t\t\tAdd a Menu\t\t\t<\/button>\n\t\t\t<ul class="new-menu-section-content"><\/ul>\n\t\t<\/li>',381 'content': '<li id="accordion-section-add_menu" class="accordion-section-new-menu">\n\t\t\t<button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false">\n\t\t\t\tAdd a Menu\t\t\t<\/button>\n\t\t\t<ul class="new-menu-section-content"><\/ul>\n\t\t<\/li>', 382 382 'active': true, 383 383 'instanceNumber': 16, -
trunk/tests/qunit/fixtures/customize-widgets.js
r35231 r38672 57 57 'tpl': { 58 58 'widgetReorderNav': '<div class="widget-reorder-nav"><span class="move-widget" tabindex="0">Move to another area…</span><span class="move-widget-down" tabindex="0">Move down</span><span class="move-widget-up" tabindex="0">Move up</span></div>', 59 'moveWidgetArea': '<div class="move-widget-area"> <p class="description">Select an area to move this widget into:</p> <ul class="widget-area-select"> <% _.each( sidebars, function ( sidebar ){ %> <li class="" data-id="<%- sidebar.id %>" title="<%- sidebar.description %>" tabindex="0"><%- sidebar.name %></li> <% }); %> </ul> <div class="move-widget-actions"> <button class="move-widget-btn button -secondary" type="button">Move</button> </div> </div>'59 'moveWidgetArea': '<div class="move-widget-area"> <p class="description">Select an area to move this widget into:</p> <ul class="widget-area-select"> <% _.each( sidebars, function ( sidebar ){ %> <li class="" data-id="<%- sidebar.id %>" title="<%- sidebar.description %>" tabindex="0"><%- sidebar.name %></li> <% }); %> </ul> <div class="move-widget-actions"> <button class="move-widget-btn button" type="button">Move</button> </div> </div>' 60 60 } 61 61 }; … … 131 131 'active': true, 132 132 'section': 'sidebar-widgets-sidebar-1', 133 'content': '<li id="customize-control-sidebars_widgets-sidebar-1" class="customize-control customize-control-sidebar_widgets"> <span class="button -secondaryadd-new-widget" tabindex="0"> Add a Widget <\/span> <span class="reorder-toggle" tabindex="0"> <span class="reorder">Reorder<\/span> <span class="reorder-done">Done<\/span> <\/span> <\/li>',133 'content': '<li id="customize-control-sidebars_widgets-sidebar-1" class="customize-control customize-control-sidebar_widgets"> <span class="button add-new-widget" tabindex="0"> Add a Widget <\/span> <span class="reorder-toggle" tabindex="0"> <span class="reorder">Reorder<\/span> <span class="reorder-done">Done<\/span> <\/span> <\/li>', 134 134 'label': '', 135 135 'description': '', -
trunk/tests/qunit/index.html
r37714 r38672 145 145 <!-- Templates for Customizer Menus --> 146 146 <script type="text/html" id="tmpl-customize-control-nav_menu-content"> 147 <button type="button" class="button -secondaryadd-new-menu-item" aria-label="Add or remove menu items" aria-expanded="false" aria-controls="available-menu-items">147 <button type="button" class="button add-new-menu-item" aria-label="Add or remove menu items" aria-expanded="false" aria-controls="available-menu-items"> 148 148 Add Items </button> 149 149 <button type="button" class="not-a-button reorder-toggle" aria-label="Reorder menu items" aria-describedby="reorder-items-desc-{{ data.menu_id }}"> … … 360 360 <p class="button-controls"> 361 361 <span class="add-to-menu"> 362 <input type="submit" class="button -secondarysubmit-add-to-menu right" value="Add to Menu" name="add-custom-menu-item" id="custom-menu-item-submit">362 <input type="submit" class="button submit-add-to-menu right" value="Add to Menu" name="add-custom-menu-item" id="custom-menu-item-submit"> 363 363 <span class="spinner"></span> 364 364 </span>
Note: See TracChangeset
for help on using the changeset viewer.