Fix typos. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14587 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
686cd3b696
commit
4a19ba4f0f
@ -893,13 +893,13 @@ function register_post_type($post_type, $args = array()) {
|
||||
*/
|
||||
function get_post_type_capabilities( $args ) {
|
||||
$defaults = array(
|
||||
'edit_post' => 'edit_' . $args->capabilities['capability_type'],
|
||||
'edit_posts' => 'edit_' . $args->capabilities['capability_type'] . 's',
|
||||
'edit_others_posts' => 'edit_others_' . $args->capabilities['capability_type'] . 's',
|
||||
'publish_posts' => 'publish_' . $args->capabilities['capability_type'] . 's',
|
||||
'read_post' => 'edit_' . $args->capabilities['capability_type'],
|
||||
'read_private_posts' => 'read_private_' . $args->capabilities['capability_type'] . 's',
|
||||
'delete_post' => 'delete_' . $args->capabilities['capability_type'],
|
||||
'edit_post' => 'edit_' . $args->capability_type,
|
||||
'edit_posts' => 'edit_' . $args->capability_type . 's',
|
||||
'edit_others_posts' => 'edit_others_' . $args->capability_type . 's',
|
||||
'publish_posts' => 'publish_' . $args->capability_type . 's',
|
||||
'read_post' => 'edit_' . $args->capability_type,
|
||||
'read_private_posts' => 'read_private_' . $args->capability_type . 's',
|
||||
'delete_post' => 'delete_' . $args->capability_type,
|
||||
);
|
||||
$labels = array_merge( $defaults, $args->capabilities );
|
||||
return (object) $labels;
|
||||
|
Loading…
Reference in New Issue
Block a user