Make WordPress Core


Ignore:
Timestamp:
01/17/2017 02:37:14 AM (8 years ago)
Author:
SergeyBiryukov
Message:

List Tables: Pass the $which parameter to restrict_manage_posts filter instance in WP_Media_List_Table, missed in [37422].

Props wpsmith.
Fixes #38772.

File:
1 edited

Legend:

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

    r38795 r39917  
    173173
    174174            /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
    175             do_action( 'restrict_manage_posts', $this->screen->post_type );
     175            do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
    176176
    177177            submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
Note: See TracChangeset for help on using the changeset viewer.