mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Inline documentation for hooks in wp-admin/includes/post.php.
Also moves the primary PHPDoc for the `edit_posts_per_page` hook to wp-admin/includes/post.php. Props kpdesign for some cleanup. Fixes #27431. git-svn-id: https://develop.svn.wordpress.org/trunk@27667 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -90,14 +90,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
$post_type = $this->screen->post_type;
|
||||
$per_page = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' );
|
||||
|
||||
/**
|
||||
* Filter the number of posts displayed per page on the Posts list table.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param int $per_page Number of posts to be displayed. Default 20.
|
||||
* @param string $post_type The post type.
|
||||
*/
|
||||
/** This filter is documented in wp-admin/includes/post.php */
|
||||
$per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type );
|
||||
|
||||
if ( $this->hierarchical_display )
|
||||
|
||||
Reference in New Issue
Block a user