WordPress.org

Make WordPress Core

Changeset 17050


Ignore:
Timestamp:
12/19/10 01:11:38 (4 years ago)
Author:
ryan
Message:

Remove 'Search Results filter from ms themes. fixes #15872

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-themes-list-table.php

    r16992 r17050  
    205205                    $text = _n( 'Update Available <span class="count">(%s)</span>', 'Update Available <span class="count">(%s)</span>', $count ); 
    206206                    break; 
    207                 case 'search': 
    208                     $text = _n( 'Search Results <span class="count">(%s)</span>', 'Search Results <span class="count">(%s)</span>', $count ); 
    209                     break; 
    210207            } 
    211208 
     
    215212                $url = 'themes.php'; 
    216213 
    217             $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>", 
    218                 add_query_arg('theme_status', $type, $url), 
    219                 ( $type == $status ) ? ' class="current"' : '', 
    220                 sprintf( $text, number_format_i18n( $count ) ) 
    221             ); 
     214            if ( 'search' != $type ) { 
     215                $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>", 
     216                    add_query_arg('theme_status', $type, $url), 
     217                    ( $type == $status ) ? ' class="current"' : '', 
     218                    sprintf( $text, number_format_i18n( $count ) ) 
     219                ); 
     220            } 
    222221        } 
    223222 
  • trunk/wp-admin/network/themes.php

    r17045 r17050  
    9292<div class="wrap"> 
    9393<?php screen_icon('themes'); ?> 
    94 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } ?></h2> 
     94<h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 
     95if ( $s )  
     96    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>  
     97</h2> 
    9598 
    9699<form method="get" action=""> 
Note: See TracChangeset for help on using the changeset viewer.