Make WordPress Core


Ignore:
Timestamp:
12/11/2014 09:31:45 AM (9 years ago)
Author:
nacin
Message:

Fix the search field width in the media modal, media library grid and on the install new plugins screen.

Merges [30813] to the 4.1 branch.

props helen.
fixes #30658.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-admin/includes/class-wp-media-list-table.php

    r30754 r30816  
    166166?>
    167167<div class="wp-filter">
    168     <?php $this->view_switcher( $mode ); ?>
    169 
    170     <select class="attachment-filters" name="attachment-filter">
    171         <?php
     168    <div class="filter-items">
     169        <?php $this->view_switcher( $mode ); ?>
     170
     171        <select class="attachment-filters" name="attachment-filter">
     172            <?php
     173            if ( ! empty( $views ) ) {
     174                foreach ( $views as $class => $view ) {
     175                    echo "\t$view\n";
     176                }
     177            }
     178            ?>
     179        </select>
     180
     181<?php
     182        $this->extra_tablenav( 'bar' );
     183
     184        /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */
     185        $views = apply_filters( "views_{$this->screen->id}", array() );
     186
     187        // Back compat for pre-4.0 view links.
    172188        if ( ! empty( $views ) ) {
     189            echo '<ul class="filter-links">';
    173190            foreach ( $views as $class => $view ) {
    174                 echo "\t$view\n";
    175             }
    176         }
    177         ?>
    178     </select>
    179 
    180 <?php
    181     $this->extra_tablenav( 'bar' );
    182 
    183     /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */
    184     $views = apply_filters( "views_{$this->screen->id}", array() );
    185 
    186     // Back compat for pre-4.0 view links.
    187     if ( ! empty( $views ) ) {
    188         echo '<ul class="filter-links">';
    189         foreach ( $views as $class => $view ) {
    190             echo "<li class='$class'>$view</li>";
    191         }
    192         echo '</ul>';
    193     }
    194 ?>
     191                echo "<li class='$class'>$view</li>";
     192            }
     193            echo '</ul>';
     194        }
     195?>
     196    </div>
    195197
    196198    <div class="search-form">
Note: See TracChangeset for help on using the changeset viewer.