Make WordPress Core


Ignore:
Timestamp:
07/24/2014 05:25:28 AM (12 years ago)
Author:
helen
Message:

Media Grid: Remove fields from showing in the grid itself.

All details are still available within the modal, and less-distinguishable non-image files still show the filename along with the file type icon.

Reverts [29079], [29078], [29077], and [28995]. see #24716.

File:
1 edited

Legend:

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

    r29079 r29280  
    10201020                <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>">
    10211021                <form id="adv-settings" action="" method="post">
    1022                 <?php if (
    1023                         isset( $wp_meta_boxes[ $this->id ] )
    1024                         || $this->get_option( 'per_page' )
    1025                         || $this->get_option( 'misc_screen_options' )
    1026                         || ( $columns && empty( $columns['_title'] ) )
    1027                 ) : ?>
     1022                <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?>
    10281023                        <h5><?php _e( 'Show on screen' ); ?></h5>
    10291024                <?php
    … …  
    10771072                                <br class="clear" />
    10781073                        </div>
    1079                 <?php elseif ( $this->get_option( 'misc_screen_options' ) ):
    1080                         $misc_options = $this->get_option( 'misc_screen_options' );
    1081                 ?>
    1082                         <div class="metabox-prefs misc-screen-options" data-id="<?php echo esc_attr( $misc_options['id'] ) ?>">
    1083                         <?php
    1084 
    1085                         $option = get_user_option( $misc_options['option'] );
    1086                         $hidden = array();
    1087                         if ( ! empty( $option ) ) {
    1088                                 $hidden = $option;
    1089                         }
    1090                         foreach ( $this->_options as $column => $args ) {
    1091                                 if ( 'misc_screen_options' === $column ) {
    1092                                         continue;
    1093                                 }
    1094                                 $id = "$column-hide";
    1095                                 echo '<label for="' . $id . '">';
    1096                                 echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $column, $hidden ), true, false ) . ' />';
    1097                                 echo $args['label'] . "</label>\n";
    1098                         } ?>
    1099                                 <br class="clear" />
    1100                         </div>
    11011074                <?php endif;
    11021075
Note: See TracChangeset for help on using the changeset viewer.