Update trash and right now links for pages. fixes #11958

git-svn-id: https://develop.svn.wordpress.org/trunk@12783 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-21 06:53:33 +00:00
parent 91732dc4f1
commit efb7966619
6 changed files with 23 additions and 36 deletions

View File

@@ -720,9 +720,11 @@ function register_post_type($post_type, $args = array()) {
if ( empty($args->capability_type) ) {
$args->edit_cap = '';
$args->read_cap = '';
$args->delete_cap = '';
} else {
$args->edit_cap = 'edit_' . $args->capability_type;
$args->read_cap = 'read_' . $args->capability_type;
$args->delete_cap = 'delete_' . $args->capability_type;
}
if ( !$args->_builtin && $args->public )