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:
Andrew Ozz 2009-02-04 16:52:36 +00:00
parent 6dd4f1ee1f
commit 989c0b4536
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 )
$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;