Make WordPress Core

Ticket #38772: 38772.diff

File 38772.diff, 1.3 KB (added by wpsmith, 8 years ago)
  • wp-admin/includes/class-wp-media-list-table.php

     
    172172                        }
    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' ) );
    178178                }
  • wp-admin/includes/class-wp-posts-list-table.php

     
    476476                         *
    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 );
    482483