mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Allow a plugin to filter the list of Page statuses. Fies #9928 props coffee2code.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8600adb080
commit
48e58fc5a2
@ -82,6 +82,8 @@ $post_stati = array( // array( adj, noun )
|
||||
'private' => array(_x('Private', 'page'), __('Private pages'), _nx_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', 'page'))
|
||||
);
|
||||
|
||||
$post_stati = apply_filters('page_stati', $post_stati);
|
||||
|
||||
$query = array('post_type' => 'page', 'orderby' => 'menu_order title',
|
||||
'posts_per_page' => -1, 'posts_per_archive_page' => -1, 'order' => 'asc');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user