Make WordPress Core


Ignore:
Timestamp:
08/19/2015 06:22:40 AM (9 years ago)
Author:
wonderboymusic
Message:

The 'restrict_manage_posts' hook currently fires on the Post and Media list tables, but is passed zero arguments. Pass $post_type.

Props sunnyratilal, scribu.
Fixes #17891.

File:
1 edited

Legend:

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

    r33270 r33644  
    149149
    150150            /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
    151             do_action( 'restrict_manage_posts' );
     151            do_action( 'restrict_manage_posts', $this->screen->post_type );
     152           
    152153            submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    153154        }
Note: See TracChangeset for help on using the changeset viewer.