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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-04-14 14:07:48 +00:00
parent 66dc4fe476
commit 31c4756a42
2 changed files with 14 additions and 5 deletions

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