Make WordPress Core

Ticket #18578: 18578.diff

File 18578.diff, 1.2 KB (added by simonwheatley, 13 years ago)

Remove unnecessary hierarchical arg from defaults in register_post_status

  • wp-includes/post.php

     
    657657                $wp_post_statuses = array();
    658658
    659659        // Args prefixed with an underscore are reserved for internal use.
    660         $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);
     660        $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);
    661661        $args = wp_parse_args($args, $defaults);
    662662        $args = (object) $args;
    663663