mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 14:35:07 +00:00
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. Built from https://develop.svn.wordpress.org/trunk@33644 git-svn-id: http://core.svn.wordpress.org/trunk@33611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b19bb99853
commit
3923017f82
@ -148,7 +148,8 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
/** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
|
||||
do_action( 'restrict_manage_posts' );
|
||||
do_action( 'restrict_manage_posts', $this->screen->post_type );
|
||||
|
||||
submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
|
||||
}
|
||||
|
||||
|
@ -333,8 +333,10 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
* Posts list table, and sorting by date on the Pages list table.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param string $post_type The post type slug.
|
||||
*/
|
||||
do_action( 'restrict_manage_posts' );
|
||||
do_action( 'restrict_manage_posts', $this->screen->post_type );
|
||||
|
||||
submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
|
||||
}
|
||||
@ -1513,8 +1515,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $column_name Name of the column to edit.
|
||||
* @param WP_Post $post_type The post type slug.
|
||||
* @param string $column_name Name of the column to edit.
|
||||
* @param string $post_type The post type slug.
|
||||
*/
|
||||
do_action( 'quick_edit_custom_box', $column_name, $screen->post_type );
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-33643';
|
||||
$wp_version = '4.4-alpha-33644';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user