mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user