Add a filter to the post states list, props johnbillion, fixes #9033

git-svn-id: http://svn.automattic.com/wordpress/trunk@10497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-02-04 16:52:36 +00:00
parent 89b22179ee
commit 4aa67fce76
1 changed files with 2 additions and 0 deletions

View File

@ -3239,6 +3239,8 @@ function _post_states($post) {
if ( 'pending' == $post->post_status && 'pending' != $post_status ) if ( 'pending' == $post->post_status && 'pending' != $post_status )
$post_states[] = _c('Pending|post state'); $post_states[] = _c('Pending|post state');
$post_states = apply_filters( 'display_post_states', $post_states );
if ( ! empty($post_states) ) { if ( ! empty($post_states) ) {
$state_count = count($post_states); $state_count = count($post_states);
$i = 0; $i = 0;