Make WordPress Core


Ignore:
Timestamp:
11/21/2011 08:48:57 PM (14 years ago)
Author:
nacin
Message:

Remove $post_type global usage from media list table. Correct $post_type to 'attachment' for upload screens. see #18722.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-media-list-table.php

    r19252 r19385  
    8585
    8686    function extra_tablenav( $which ) {
    87         global $post_type;
    88         $post_type_obj = get_post_type_object( $post_type );
    8987?>
    9088        <div class="alignleft actions">
    9189<?php
    9290        if ( 'top' == $which && !is_singular() && !$this->detached && !$this->is_trash ) {
    93             $this->months_dropdown( $post_type );
     91            $this->months_dropdown( 'attachment' );
    9492
    9593            do_action( 'restrict_manage_posts' );
Note: See TracChangeset for help on using the changeset viewer.