Add a filter to the post states list, props johnbillion, fixes #9033
git-svn-id: https://develop.svn.wordpress.org/trunk@10497 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6dd4f1ee1f
commit
989c0b4536
|
@ -3239,6 +3239,8 @@ function _post_states($post) {
|
|||
if ( 'pending' == $post->post_status && 'pending' != $post_status )
|
||||
$post_states[] = _c('Pending|post state');
|
||||
|
||||
$post_states = apply_filters( 'display_post_states', $post_states );
|
||||
|
||||
if ( ! empty($post_states) ) {
|
||||
$state_count = count($post_states);
|
||||
$i = 0;
|
||||
|
|
Loading…
Reference in New Issue