Make WordPress Core


Ignore:
Timestamp:
07/10/2014 09:25:49 PM (10 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-includes/media-template.php

    r29077 r29078  
    420420        <div class="data-fields">
    421421        <?php
    422         $hidden = get_hidden_columns( get_current_screen() );
     422        $option = get_user_option( 'manageuploadgridcolumnshidden' );
     423        $hidden = array();
     424        if ( ! empty( $option ) ) {
     425            $hidden = $option;
     426        }
    423427        $fields = array( 'title', 'uploadedTo', 'dateFormatted', 'mime' );
    424428        foreach ( $fields as $field ):
Note: See TracChangeset for help on using the changeset viewer.