Add post_type_labels_{$post_type} filter. props scribu. fixes #21948.
git-svn-id: http://core.svn.wordpress.org/trunk@22164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ac0011a77c
commit
ac6f57de76
|
@ -1379,7 +1379,11 @@ function get_post_type_labels( $post_type_object ) {
|
|||
'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) )
|
||||
);
|
||||
$nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
|
||||
return _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );
|
||||
|
||||
$labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );
|
||||
|
||||
$post_type = $post_type_object->name;
|
||||
return apply_filters( "post_type_labels_{$post_type}", $labels );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue