From 0ce7f85ca4b1318d08e6b7b86a39954ec62f7e71 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: https://develop.svn.wordpress.org/trunk@21846 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;