Ticket #23477: allow-secondary-button-class.patch
| File allow-secondary-button-class.patch, 5.7 KB (added by , 12 years ago) |
|---|
-
wp-admin/users.php
250 250 wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li> 251 251 </ul></fieldset> 252 252 <input type="hidden" name="action" value="dodelete" /> 253 <?php submit_button( __('Confirm Deletion'), ' secondary' ); ?>253 <?php submit_button( __('Confirm Deletion'), '' ); ?> 254 254 <?php else : ?> 255 255 <p><?php _e('There are no valid users selected for deletion.'); ?></p> 256 256 <?php endif; ?> … … 344 344 ?> 345 345 <?php if ( $go_remove ) : ?> 346 346 <input type="hidden" name="action" value="doremove" /> 347 <?php submit_button( __('Confirm Removal'), ' secondary' ); ?>347 <?php submit_button( __('Confirm Removal'), '' ); ?> 348 348 <?php else : ?> 349 349 <p><?php _e('There are no valid users selected for removal.'); ?></p> 350 350 <?php endif; ?> -
wp-admin/includes/class-wp-media-list-table.php
95 95 } 96 96 97 97 if ( $this->detached ) { 98 submit_button( __( 'Scan for lost attachments' ), ' secondary', 'find_detached', false );98 submit_button( __( 'Scan for lost attachments' ), '', 'find_detached', false ); 99 99 } elseif ( $this->is_trash && current_user_can( 'edit_others_posts' ) ) { 100 100 submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); 101 101 } ?> -
wp-admin/includes/template.php
554 554 555 555 <tr><td colspan="2"> 556 556 <div class="submit"> 557 <?php submit_button( __( 'Add Custom Field' ), ' secondary', 'addmeta', false, array( 'id' => 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?>557 <?php submit_button( __( 'Add Custom Field' ), '', 'addmeta', false, array( 'id' => 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?> 558 558 </div> 559 559 <?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?> 560 560 </td></tr> … … 1661 1661 $button_shorthand = array( 'primary', 'small', 'large' ); 1662 1662 $classes = array( 'button' ); 1663 1663 foreach ( $type as $t ) { 1664 if ( 'secondary' === $t || 'button-secondary' === $t )1665 continue;1666 1664 $classes[] = in_array( $t, $button_shorthand ) ? 'button-' . $t : $t; 1667 1665 } 1668 1666 $class = implode( ' ', array_unique( $classes ) ); -
wp-admin/includes/nav-menu.php
725 725 <p class="quick-search-wrap"> 726 726 <input type="search" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" /> 727 727 <span class="spinner"></span> 728 <?php submit_button( __( 'Search' ), 'button-small quick-search-submit button-secondaryhide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>728 <?php submit_button( __( 'Search' ), 'button-small quick-search-submit hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?> 729 729 </p> 730 730 731 731 <ul id="<?php echo $post_type_name; ?>-search-checklist" data-wp-lists="list:<?php echo $post_type_name?>" class="categorychecklist form-no-clear"> … … 967 967 <p class="quick-search-wrap"> 968 968 <input type="search" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" /> 969 969 <span class="spinner"></span> 970 <?php submit_button( __( 'Search' ), 'button-small quick-search-submit button-secondaryhide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>970 <?php submit_button( __( 'Search' ), 'button-small quick-search-submit hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?> 971 971 </p> 972 972 973 973 <ul id="<?php echo $taxonomy_name; ?>-search-checklist" data-wp-lists="list:<?php echo $taxonomy_name?>" class="categorychecklist form-no-clear"> -
wp-admin/custom-header.php
732 732 <?php submit_button( __( 'Crop and Publish' ), 'primary', 'submit', false ); ?> 733 733 <?php 734 734 if ( isset( $oitar ) && 1 == $oitar && ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) 735 submit_button( __( 'Skip Cropping, Publish Image as Is' ), ' secondary', 'skip-cropping', false );735 submit_button( __( 'Skip Cropping, Publish Image as Is' ), '', 'skip-cropping', false ); 736 736 ?> 737 737 </p> 738 738 </form> -
wp-admin/themes.php
260 260 <?php endforeach; ?> 261 261 262 262 <div class="feature-container"> 263 <?php submit_button( __( 'Apply Filters' ), ' button-secondarysubmitter', false, false, array( 'id' => 'filter-submit' ) ); ?>263 <?php submit_button( __( 'Apply Filters' ), 'submitter', false, false, array( 'id' => 'filter-submit' ) ); ?> 264 264 265 265 <a id="mini-filter-click" href="<?php echo esc_url( remove_query_arg( array('filter', 'features', 'submit') ) ); ?>"><?php _e( 'Close filters' )?></a> 266 266 </div>