From 989c0b4536b85172d4a5d7fd59829992cc5b1f4e Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 4 Feb 2009 16:52:36 +0000 Subject: [PATCH] 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 --- wp-admin/includes/template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 88ab5c240f..b66e75a112 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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;