From 95c9cd1e6bf6281c232669dddeeb3cd229f1f4ae Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 14 Sep 2012 18:02:23 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 34a5039e48..7442a49400 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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;