Ticket #9674: post.diff
File post.diff, 1.5 KB (added by , 15 years ago) |
---|
-
post.php
504 504 $wp_post_statuses = array(); 505 505 506 506 // Args prefixed with an underscore are reserved for internal use. 507 $defaults = array('label' => false, 'label_count' => false, 'exclude_from_search' => true, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => false, '_show' => false);507 $defaults = array('label' => false, 'label_count' => false, 'exclude_from_search' => true, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => true, '_show' => false); 508 508 $args = wp_parse_args($args, $defaults); 509 509 $args = (object) $args; 510 510 … … 707 707 $wp_post_types = array(); 708 708 709 709 // Args prefixed with an underscore are reserved for internal use. 710 $defaults = array('label' => false, 'exclude_from_search' => true, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => false, '_show' => false, 'supports' => array());710 $defaults = array('label' => false, 'exclude_from_search' => true, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => true, '_show' => false, 'supports' => array()); 711 711 $args = wp_parse_args($args, $defaults); 712 712 $args = (object) $args; 713 713