Fix typos. see #13358.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-12 20:57:47 +00:00
parent ecb2ff033a
commit 1cb8b7d994
1 changed files with 7 additions and 7 deletions

View File

@ -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;