Introduce 'singular_label' for Post Types. Props scribu. See #12214

git-svn-id: http://svn.automattic.com/wordpress/trunk@13101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32
2010-02-13 08:56:38 +00:00
parent 8aede6cab7
commit 8136de990c
3 changed files with 12 additions and 5 deletions

View File

@@ -195,7 +195,7 @@ case 'edit':
wp_enqueue_script('autosave');
}
$title = sprintf(__('Edit %s'), $post_type_object->label);
$title = sprintf(__('Edit %s'), $post_type_object->singular_label);
$post = get_post_to_edit($post_id);
include('edit-form-advanced.php');