Ticket #18972: 18972.3.diff
| File 18972.3.diff, 809 bytes (added by duck_, 10 months ago) |
|---|
-
wp-includes/post.php
680 680 'internal' => null, 681 681 'protected' => null, 682 682 'private' => null, 683 'show_in_admin_all' => null,684 683 'publicly_queryable' => null, 685 684 'show_in_admin_status_list' => null, 686 685 'show_in_admin_all_list' => null, 687 'single_view_cap' => null,688 686 ); 689 687 $args = wp_parse_args($args, $defaults); 690 688 $args = (object) $args; … … 719 717 if ( null === $args->show_in_admin_status_list ) 720 718 $args->show_in_admin_status_list = !$args->internal; 721 719 722 if ( null === $args->single_view_cap )723 $args->single_view_cap = $args->public ? '' : 'edit';724 725 720 if ( false === $args->label ) 726 721 $args->label = $post_status; 727 722
