Make WordPress Core


Ignore:
Timestamp:
07/10/2014 08:59:12 PM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid: Move toggling of visible fields to Screen Options. This moves us in a better direction... but this will probably need to be massaged again.

See #24716.

File:
1 edited

Legend:

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

    r29057 r29077  
    2626    wp_enqueue_script( 'media' );
    2727    wp_localize_script( 'media-grid', 'mediaGridSettings', array( 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH )  ) );
     28
     29    add_screen_option( 'media_grid_title', array( 'label' => __( 'Name' ) ) );
     30    add_screen_option( 'media_grid_uploadedTo', array( 'label' => __( 'Uploaded To' ) ) );
     31    add_screen_option( 'media_grid_dateFormatted', array( 'label' => __( 'Date' ) ) );
     32    add_screen_option( 'media_grid_mime', array( 'label' => __( 'Mime-type' ) ) );
    2833
    2934    require_once( ABSPATH . 'wp-admin/admin-header.php' );
Note: See TracChangeset for help on using the changeset viewer.