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:
parent
89b22179ee
commit
4aa67fce76
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue