WordPress.org

Make WordPress Core

Changeset 39917


Ignore:
Timestamp:
01/17/2017 02:37:14 AM (16 months 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.

Location:
trunk/src/wp-admin/includes
Files:
2 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' ) );
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r39539 r39917  
    477477             * @param string $post_type The post type slug.
    478478             * @param string $which     The location of the extra table nav markup:
    479              *                          'top' or 'bottom'.
     479             *                          'top' or 'bottom' for WP_Posts_List_Table,
     480             *                          'bar' for WP_Media_List_Table.
    480481             */
    481482            do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
Note: See TracChangeset for help on using the changeset viewer.