Ticket #18578: 18578.diff

File 18578.diff, 1.2 KB (added by simonwheatley, 21 months ago)

Remove unnecessary hierarchical arg from defaults in register_post_status

Line 
1Index: wp-includes/post.php
2===================================================================
3--- wp-includes/post.php        (revision 18631)
4+++ wp-includes/post.php        (working copy)
5@@ -657,7 +657,7 @@
6                $wp_post_statuses = array();
7 
8        // Args prefixed with an underscore are reserved for internal use.
9-       $defaults = array('label' => false, 'label_count' => false, 'exclude_from_search' => null, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => null, '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);
10+       $defaults = array('label' => false, 'label_count' => false, 'exclude_from_search' => null, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'public' => null, '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);
11        $args = wp_parse_args($args, $defaults);
12        $args = (object) $args;
13