WordPress.org

Make WordPress Core

Ticket #16345: 16345.2.diff

File 16345.2.diff, 2.3 KB (added by garyc40, 3 years ago)

"Search Users" and "Search Sites" on network dashboard don't need names either

  • wp-admin/includes/dashboard.php

    diff --git wp-admin/includes/dashboard.php wp-admin/includes/dashboard.php
    index 8f937f3..0971af2 100644
    function wp_network_dashboard_right_now() { 
    442442        <form name="searchform" action="<?php echo network_admin_url('users.php'); ?>" method="get"> 
    443443                <p> 
    444444                        <input type="text" name="s" value="" size="17" /> 
    445                         <?php submit_button( __( 'Search Users' ), 'button', 'submit', false, array( 'id' => 'submit_users' ) ); ?> 
     445                        <?php submit_button( __( 'Search Users' ), 'button', false, false, array( 'id' => 'submit_users' ) ); ?> 
    446446                </p> 
    447447        </form> 
    448448 
    449449        <form name="searchform" action="<?php echo network_admin_url('sites.php'); ?>" method="get"> 
    450450                <p> 
    451451                        <input type="text" name="s" value="" size="17" /> 
    452                         <?php submit_button( __( 'Search Sites' ), 'button', 'submit', false, array( 'id' => 'submit_sites' ) ); ?> 
     452                        <?php submit_button( __( 'Search Sites' ), 'button', false, false, array( 'id' => 'submit_sites' ) ); ?> 
    453453                </p> 
    454454        </form> 
    455455<?php 
  • wp-admin/themes.php

    diff --git wp-admin/themes.php wp-admin/themes.php
    index 171a0b2..0df4836 100644
    if ( ! current_user_can( 'switch_themes' ) ) { 
    149149<p class="search-box"> 
    150150        <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label> 
    151151        <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 
    152         <?php submit_button( __( 'Search Themes' ), 'button', 'submit', false ); ?> 
     152        <?php submit_button( __( 'Search Themes' ), 'button', false, false, array( 'id' => 'search-submit' ) ); ?> 
    153153        <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a> 
    154154</p> 
    155155 
    if ( ! current_user_can( 'switch_themes' ) ) { 
    184184        <?php endforeach; ?> 
    185185 
    186186        <div class="feature-container"> 
    187                 <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', 'submit', false, array( 'style' => 'margin-left: 120px' ) ); ?> 
     187                <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', false, false, array( 'style' => 'margin-left: 120px' ) ); ?> 
    188188                &nbsp; 
    189189                <small><a id="mini-filter-click" href="<?php echo esc_url( remove_query_arg( array('filter', 'features', 'submit') ) ); ?>"><?php _e( 'Close filters' )?></a></small> 
    190190        </div>