Register 'inherit' as a post status. Check the parent post status when commenting on attachments.

git-svn-id: https://develop.svn.wordpress.org/trunk@14086 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-04-14 14:07:48 +00:00
parent d37747f046
commit 2e60fb8e0e
2 changed files with 14 additions and 5 deletions
+6
View File
@@ -116,6 +116,12 @@ function create_initial_post_types() {
'_builtin' => true, /* internal use only. */
'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>')
) );
register_post_status( 'inherit', array( 'label' => _x('Inherit', 'post'),
'internal' => true,
'_builtin' => true, /* internal use only. */
'label_count' => _n_noop('Inherit <span class="count">(%s)</span>', 'Inherit <span class="count">(%s)</span>')
) );
}
add_action( 'init', 'create_initial_post_types', 0 ); // highest priority