Make WordPress Core


Ignore:
Timestamp:
09/15/2008 05:53:30 PM (17 years ago)
Author:
ryan
Message:

Column hiding for media library. see #7725

File:
1 edited

Legend:

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

    r8867 r8894  
    4949$parent_file = 'edit.php';
    5050wp_enqueue_script( 'admin-forms' );
     51wp_enqueue_script('media');
    5152
    5253list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
     
    7576
    7677<form id="posts-filter" action="" method="get">
     78
     79<div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>
     80<a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>
     81
     82<div id="edit-settings" class="hide-if-js hide-if-no-js">
     83<div id="edit-settings-wrap">
     84<h5><?php _e('Show on screen') ?></h5>
     85<div class="metabox-prefs">
     86<?php manage_columns_prefs('media') ?>
     87<br class="clear" />
     88</div></div>
     89</div>
     90
    7791<h2><?php
    7892if ( is_singular() ) {
     
    215229<?php include( 'edit-attachment-rows.php' ); ?>
    216230
     231<?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>
     232
    217233</form>
    218234
Note: See TracChangeset for help on using the changeset viewer.