Remove unused show_in_admin_all and single_view_cap from register_post_status(). props duck_. fixes #18972.
git-svn-id: http://core.svn.wordpress.org/trunk@21846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
07324a1f53
commit
95c9cd1e6b
|
@ -806,11 +806,9 @@ function register_post_status($post_status, $args = array()) {
|
|||
'internal' => null,
|
||||
'protected' => null,
|
||||
'private' => null,
|
||||
'show_in_admin_all' => null,
|
||||
'publicly_queryable' => null,
|
||||
'show_in_admin_status_list' => null,
|
||||
'show_in_admin_all_list' => null,
|
||||
'single_view_cap' => null,
|
||||
);
|
||||
$args = wp_parse_args($args, $defaults);
|
||||
$args = (object) $args;
|
||||
|
@ -845,9 +843,6 @@ function register_post_status($post_status, $args = array()) {
|
|||
if ( null === $args->show_in_admin_status_list )
|
||||
$args->show_in_admin_status_list = !$args->internal;
|
||||
|
||||
if ( null === $args->single_view_cap )
|
||||
$args->single_view_cap = $args->public ? '' : 'edit';
|
||||
|
||||
if ( false === $args->label )
|
||||
$args->label = $post_status;
|
||||
|
||||
|
|
Loading…
Reference in New Issue