Remove unused show_in_admin_all and single_view_cap from register_post_status(). props duck_. fixes #18972.

git-svn-id: https://develop.svn.wordpress.org/trunk@21846 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-09-14 18:02:23 +00:00
parent 5b132e4c24
commit 0ce7f85ca4
1 changed files with 0 additions and 5 deletions

View File

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