WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/10/2014 09:25:49 PM (6 years ago)
Author:
wonderboymusic
Message:

Media Grid: Screen Options for grid have to play nice with Screen Options for list. This was fun.

See #24716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/screen.php

    r29077 r29078  
    10791079        <?php elseif ( $this->get_option( 'media_grid_title' ) ): ?>
    10801080            <div class="metabox-prefs media-grid-prefs">
    1081             <?php foreach ( $this->_options as $column => $args ) {
     1081            <?php
     1082            $option = get_user_option( 'manageuploadgridcolumnshidden' );
     1083            $hidden = array();
     1084            if ( ! empty( $option ) ) {
     1085                $hidden = $option;
     1086            }
     1087            foreach ( $this->_options as $column => $args ) {
    10821088                $id = "$column-hide";
    10831089                echo '<label for="' . $id . '">';
Note: See TracChangeset for help on using the changeset viewer.