Ticket #27314: 27314.diff
File 27314.diff, 65.1 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
1204 1204 * Widgets and Menus common styles 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 { 1210 1210 cursor: pointer; -
src/wp-admin/css/ie.css
221 221 } 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 } 228 227 … … 447 446 display: block; 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; 454 453 } … … 507 506 border-collapse: collapse; 508 507 } 509 508 510 .tablenav a.button -secondary{509 .tablenav a.button { 511 510 display: inline-block; 512 511 padding: 2px 5px; 513 512 } -
src/wp-admin/css/install.css
443 443 margin-right: 15px; 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; 449 449 } -
src/wp-admin/css/list-tables.css
656 656 margin-left: 2px; 657 657 } 658 658 659 .tablenav a.button, 659 660 .tablenav a.button-secondary { 660 661 display: block; 661 662 margin: 3px 8px 0 0; -
src/wp-admin/css/themes.css
114 114 margin-right: 3px; 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; 120 120 } -
src/wp-admin/custom-background.php
242 242 <td> 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> 248 248 </td> … … 256 256 <td> 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> 262 262 </td> … … 272 272 <input type="file" id="upload" name="import" /> 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> 278 278 <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br /> -
src/wp-admin/custom-header.php
576 576 <input type="file" id="upload" name="import" /> 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 582 582 $modal_update_href = esc_url( add_query_arg( array( … … 634 634 <th scope="row"><?php _e( 'Remove Image' ); ?></th> 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> 640 640 <?php endif; … … 645 645 <th scope="row"><?php _e( 'Reset Image' ); ?></th> 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> 651 651 <?php endif; ?> … … 823 823 <?php submit_button( __( 'Crop and Publish' ), 'primary', 'submit', false ); ?> 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> 829 829 </form> -
src/wp-admin/customize.php
168 168 <?php endforeach; ?> 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> 174 174 </button> -
src/wp-admin/includes/class-wp-comments-list-table.php
351 351 * @since 3.5.0 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 357 357 if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_user_can( 'moderate_comments' ) ) { -
src/wp-admin/includes/class-wp-links-list-table.php
112 112 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> 118 118 <?php -
src/wp-admin/includes/class-wp-list-table.php
361 361 <p class="search-box"> 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 367 367 } -
src/wp-admin/includes/class-wp-media-list-table.php
174 174 /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */ 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 180 180 if ( $this->is_trash && current_user_can( 'edit_others_posts' ) ) { -
src/wp-admin/includes/class-wp-plugin-install-list-table.php
488 488 } 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'] ) ), 494 494 $button_text -
src/wp-admin/includes/class-wp-plugins-list-table.php
367 367 <p class="search-box"> 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 373 373 } … … 496 496 echo '<div class="alignleft actions">'; 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 */ 502 502 echo '<p>' . sprintf( __( 'Files in the %s directory are executed automatically.' ), -
src/wp-admin/includes/class-wp-posts-list-table.php
479 479 */ 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 485 485 if ( $this->is_trash && current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts ) ) { … … 1713 1713 } 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 ); ?>" /> 1726 1726 <input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" /> -
src/wp-admin/includes/class-wp-terms-list-table.php
619 619 ?> 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> 626 626 <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?> -
src/wp-admin/includes/class-wp-theme-install-list-table.php
329 329 <div id="theme-installer" class="wp-full-overlay expanded"> 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> 335 335 <div class="wp-full-overlay-sidebar-content"> … … 336 336 <div class="install-theme-info"></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> 342 342 </button> … … 398 398 <div class="install-theme-info"><?php 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': 404 404 case 'latest_installed': … … 406 406 break; 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 } ?> 412 412 <h3 class="theme-name"><?php echo $name; ?></h3> -
src/wp-admin/includes/class-wp-users-list-table.php
267 267 <?php wp_dropdown_roles(); ?> 268 268 </select> 269 269 <?php 270 submit_button( __( 'Change' ), ' button', 'changeit', false );270 submit_button( __( 'Change' ), '', 'changeit', false ); 271 271 endif; 272 272 273 273 /** -
src/wp-admin/includes/dashboard.php
427 427 <p> 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> 433 433 … … 435 435 <p> 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> 441 441 <?php -
src/wp-admin/includes/file.php
1261 1261 ?> 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> 1267 1267 </form> -
src/wp-admin/includes/media.php
1480 1480 ); 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 1486 1486 $delete = empty( $r['delete'] ) ? '' : $r['delete']; … … 2031 2031 ?></div> 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> 2037 2037 <?php … … 2242 2242 </div> 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'] ); ?>" /> 2248 2248 <input type="hidden" name="tab" value="<?php echo esc_attr( $GLOBALS['tab'] ); ?>" /> … … 2382 2382 <p id="media-search" class="search-box"> 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 2388 2388 <ul class="subsubsub"> … … 2479 2479 </select> 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> 2485 2485 … … 2509 2509 <?php echo get_media_items(null, $errors); ?> 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> 2515 2515 </form> … … 2612 2612 <tr class="not-image"> 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> 2618 2618 </tbody></table> -
src/wp-admin/includes/meta-boxes.php
32 32 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 38 38 <div id="minor-publishing-actions"> … … 290 290 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 296 296 … … 875 875 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 881 881 <div id="minor-publishing-actions"> -
src/wp-admin/includes/nav-menu.php
284 284 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> 290 290 </p> … … 450 450 <label for="quick-search-posttype-<?php echo $post_type_name; ?>" class="screen-reader-text"><?php _e( 'Search' ); ?></label> 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 456 456 <ul id="<?php echo $post_type_name; ?>-search-checklist" data-wp-lists="list:<?php echo $post_type_name?>" class="categorychecklist form-no-clear"> … … 572 572 </span> 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> 578 578 </p> … … 739 739 <label for="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" class="screen-reader-text"><?php _e( 'Search' ); ?></label> 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 745 745 <ul id="<?php echo $taxonomy_name; ?>-search-checklist" data-wp-lists="list:<?php echo $taxonomy_name?>" class="categorychecklist form-no-clear"> … … 770 770 </span> 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> 776 776 </p> -
src/wp-admin/includes/plugin-install.php
265 265 <label><span class="screen-reader-text"><?php _e( 'Search Plugins' ); ?></span> 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 } 271 271 … … 281 281 <?php wp_nonce_field( 'plugin-upload' ); ?> 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> 287 287 <?php -
src/wp-admin/includes/template.php
423 423 </div> 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> 433 433 </p> … … 657 657 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 ); ?> 663 663 </td></tr> … … 1513 1513 <div id="find-posts-response"></div> 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> 1519 1519 </div> … … 1914 1914 continue; 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' ); 1923 1924 -
src/wp-admin/includes/theme-install.php
85 85 <label class="screen-reader-text" for="s"><?php _e('Search by keyword'); ?></label> 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 91 91 } … … 130 130 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 136 136 } … … 145 145 <?php wp_nonce_field( 'theme-upload' ); ?> 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 151 151 } -
src/wp-admin/includes/widgets.php
254 254 <a class="widget-control-close" href="#close"><?php _e('Close'); ?></a> 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> 260 260 <br class="clear" /> … … 278 278 */ 279 279 function wp_widgets_access_body_class($classes) { 280 280 return "$classes widgets_access "; 281 } 282 No newline at end of file 281 } -
src/wp-admin/install.php
141 141 <div class=""> 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> 147 147 </button> -
src/wp-admin/js/customize-widgets.js
835 835 $saveBtn = this.container.find( '.widget-control-save' ); 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(); 841 841 self.updateWidget( { disable_form: true } ); // @todo disable_form is unused? -
src/wp-admin/js/updates.js
1105 1105 $message.siblings( '.preview' ).replaceWith( function () { 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 } ); 1111 1111 } -
src/wp-admin/js/widgets.js
354 354 if ( $target.hasClass('button-primary') ) { 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(); 365 365 } else { -
src/wp-admin/nav-menus.php
713 713 </option> 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' ) ) ) ); ?> 719 719 </span><!-- /add-new-menu-action --> -
src/wp-admin/network/themes.php
161 161 wp_nonce_field( 'bulk-themes' ); 162 162 163 163 if ( 1 == $themes_to_delete ) { 164 submit_button( __( 'Yes, delete this theme' ), ' button', 'submit', false );164 submit_button( __( 'Yes, delete this theme' ), '', 'submit', false ); 165 165 } else { 166 submit_button( __( 'Yes, delete these themes' ), ' button', 'submit', false );166 submit_button( __( 'Yes, delete these themes' ), '', 'submit', false ); 167 167 } 168 168 ?> 169 169 </form> … … 171 171 $referer = wp_get_referer(); 172 172 ?> 173 173 <form method="post" action="<?php echo $referer ? esc_url( $referer ) : ''; ?>" style="display:inline;"> 174 <?php submit_button( __( 'No, return me to the theme list' ), ' button', 'submit', false ); ?>174 <?php submit_button( __( 'No, return me to the theme list' ), '', 'submit', false ); ?> 175 175 </form> 176 176 </div> 177 177 <?php -
src/wp-admin/plugin-editor.php
224 224 } 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> 230 230 <br class="clear" /> -
src/wp-admin/plugins.php
327 327 } 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 333 333 $referer = wp_get_referer(); 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> 339 339 <?php -
src/wp-admin/theme-editor.php
182 182 } 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> 188 188 <br class="clear" /> -
src/wp-admin/theme-install.php
174 174 <label for="wporg-username-input"><?php _e( 'Your WordPress.org username:' ); ?></label> 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> 180 180 … … 262 262 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 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 { #> 270 270 <?php … … 272 272 $aria_label = sprintf( __( 'Install %s' ), '{{ data.name }}' ); 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> 278 278 … … 325 325 </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> 331 331 </button> -
src/wp-admin/themes.php
200 200 $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. 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]; 208 208 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 } 216 216 … … 219 219 } 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 } 227 227 } … … 281 281 /* translators: %s: Theme name */ 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> 287 287 <?php } ?> … … 333 333 ), admin_url( 'themes.php' ) ); 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 } 339 339 … … 348 348 ), admin_url( 'update.php' ) ); 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 } 354 354 } … … 410 410 /* translators: %s: Theme name */ 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 <# } #> 416 416 </div> … … 469 469 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 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> 475 475 </div> 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> 481 481 </div> -
src/wp-admin/tools.php
49 49 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> 55 55 </button> … … 68 68 <p><?php _e( 'Follow the link to open Press This. Then add it to your device’s bookmarks or home screen.' ); ?></p> 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> 74 74 jQuery( document ).ready( function( $ ) { -
src/wp-admin/update-core.php
92 92 echo '<input name="locale" value="'. esc_attr($update->locale) .'" type="hidden"/>'; 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> '; 101 101 } 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 ) ) 109 109 echo '<p class="hint">'.__('This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.').'</p>'; -
src/wp-admin/user-edit.php
505 505 <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th> 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> 520 520 <div style="display:none" id="pass-strength-result" aria-live="polite"></div> … … 544 544 <tr class="user-sessions-wrap hide-if-no-js"> 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.' ); ?> 550 550 </p> … … 554 554 <tr class="user-sessions-wrap hide-if-no-js"> 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.' ); ?> 560 560 </p> … … 564 564 <tr class="user-sessions-wrap hide-if-no-js"> 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 570 570 /* translators: 1: User's display name. */ -
src/wp-admin/user-new.php
421 421 </th> 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 ); ?> 427 427 <span class="password-input-wrapper"> 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> 437 437 <div style="display:none" id="pass-strength-result" aria-live="polite"></div> -
src/wp-admin/widgets.php
315 315 <a href="widgets.php" class="button alignleft"><?php _e('Cancel'); ?></a> 316 316 <?php 317 317 } else { 318 submit_button( __( 'Delete' ), ' buttonalignleft', 'removewidget', false );318 submit_button( __( 'Delete' ), 'alignleft', 'removewidget', false ); 319 319 } 320 submit_button( __( 'Save Widget' ), ' button-primary alignright', 'savewidget', false ); ?>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); ?>" /> 323 323 <input type="hidden" name="multi_number" class="multi_number" value="<?php echo esc_attr($multi_number); ?>" /> … … 500 500 <div class="widgets-chooser"> 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> 507 507 -
src/wp-includes/class-wp-customize-nav-menus.php
914 914 </p> 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> 920 920 </p> -
src/wp-includes/class-wp-customize-widgets.php
712 712 <% }); %> 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>' 718 718 ); -
src/wp-includes/customize/class-wp-customize-nav-menu-control.php
48 48 */ 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> 54 54 <button type="button" class="button-link reorder-toggle" aria-label="<?php esc_attr_e( 'Reorder menu items' ); ?>" aria-describedby="reorder-items-desc-{{ data.menu_id }}"> -
src/wp-includes/customize/class-wp-customize-new-menu-section.php
36 36 protected function render() { 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> 42 42 <ul class="new-menu-section-content"></ul> -
src/wp-includes/customize/class-wp-widget-area-customize-control.php
57 57 public function render_content() { 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> 63 63 <button type="button" class="button-link reorder-toggle" aria-label="<?php esc_attr_e( 'Reorder widgets' ); ?>" aria-describedby="<?php echo esc_attr( $id ); ?>"> -
src/wp-includes/general-template.php
481 481 ' . $login_form_middle . ' 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> 487 487 ' . $login_form_bottom . ' -
tests/qunit/fixtures/customize-menus.js
378 378 'panel': 'nav_menus', 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, 384 384 'customizeAction': 'Customizing ▸ Menus' -
tests/qunit/fixtures/customize-widgets.js
56 56 }, 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 }; 62 62 … … 130 130 'priority': 99, 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': '', 136 136 'instanceNumber': 1, -
tests/qunit/index.html
144 144 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 }}"> 150 150 <span class="reorder">Reorder</span> … … 359 359 </p> 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> 365 365 </p>