Ticket #8592: 8592.3.patch
| File 8592.3.patch, 3.3 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/class-wp-posts-list-table.php
844 844 <label> 845 845 <span class="title"><?php _e( 'Parent' ); ?></span> 846 846 <?php 847 if ( current_user_can( $post_type_object->cap->read_private_posts ) ) 848 $post_status = array( 'publish', 'private' ); 849 else 850 $post_status = 'publish'; 851 847 852 $dropdown_args = array( 848 853 'post_type' => $post_type_object->name, 849 854 'selected' => $post->post_parent, … … 851 856 'show_option_none' => __( 'Main Page (no parent)' ), 852 857 'option_none_value' => 0, 853 858 'sort_column' => 'menu_order, post_title', 859 'post_status' => $post_status, 854 860 ); 855 861 856 862 if ( $bulk ) -
wp-admin/includes/meta-boxes.php
554 554 function page_attributes_meta_box($post) { 555 555 $post_type_object = get_post_type_object($post->post_type); 556 556 if ( $post_type_object->hierarchical ) { 557 if ( current_user_can( $post_type_object->cap->read_private_posts ) ) 558 $post_status = array( 'publish', 'private' ); 559 else 560 $post_status = 'publish'; 561 557 562 $dropdown_args = array( 558 563 'post_type' => $post->post_type, 559 564 'exclude_tree' => $post->ID, … … 562 567 'show_option_none' => __('(no parent)'), 563 568 'sort_column' => 'menu_order, post_title', 564 569 'echo' => 0, 570 'post_status' => $post_status, 565 571 ); 566 572 567 573 $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); -
wp-includes/post-template.php
771 771 'selected' => 0, 'echo' => 1, 772 772 'name' => 'page_id', 'id' => '', 773 773 'show_option_none' => '', 'show_option_no_change' => '', 774 'option_none_value' => '' 774 'option_none_value' => '', 775 'post_status' => 'publish', 775 776 ); 776 777 777 778 $r = wp_parse_args( $args, $defaults ); … … 1110 1111 if ( $page->ID == $args['selected'] ) 1111 1112 $output .= ' selected="selected"'; 1112 1113 $output .= '>'; 1113 $title = apply_filters( 'list_pages', $page->post_title, $page ); 1114 1115 $title = $page->post_title; 1116 $post_states = array(); 1117 1118 if ( !empty( $page->post_password ) ) 1119 $post_states['protected'] = __( 'Password protected' ); 1120 1121 if ( 'private' == $page->post_status ) 1122 $post_states['private'] = __( 'Private' ); 1123 1124 if ( 'draft' == $page->post_status ) 1125 $post_states['draft'] = __( 'Draft' ); 1126 1127 if ( 'pending' == $page->post_status ) 1128 // translators: post state 1129 $post_states['pending'] = _x( 'Pending', 'post state' ); 1130 1131 if ( is_sticky( $page->ID ) ) 1132 $post_states['sticky'] = __( 'Sticky' ); 1133 1134 $post_states = apply_filters( 'display_post_states', $post_states ); 1135 1136 if ( ! empty( $post_states ) ) { 1137 $states = implode( ', ', $post_states ); 1138 $title = $title . sprintf( ' (%s)', $states ); 1139 } 1140 1141 $title = apply_filters( 'list_pages', $title, $page ); 1114 1142 $output .= $pad . esc_html( $title ); 1115 1143 $output .= "</option>\n"; 1116 1144 }