Make WordPress Core

Ticket #8592: 8592-dropdowns.diff

File 8592-dropdowns.diff, 903 bytes (added by sillybean, 13 years ago)

Adds the page's status in admin dropdown menu

  • wp-includes/post-template.php

     
    11001100                if ( $page->ID == $args['selected'] )
    11011101                        $output .= ' selected="selected"';
    11021102                $output .= '>';
    1103                 $title = esc_html($page->post_title);
    1104                 $title = apply_filters( 'list_pages', $page->post_title );
     1103                $title = $page->post_title;
     1104                if (is_admin() && 'publish' != $page->post_status) {
     1105                        if ('private' == $page->post_status )
     1106                                $title .= ' -- ' . __('Private');
     1107                        if ('draft' == $page->post_status )
     1108                                $title .= ' -- ' . __('Draft');
     1109                        if ('pending' == $page->post_status )
     1110                                $title .= ' -- ' . __('Pending');
     1111                }
     1112                $title = apply_filters( 'list_pages', $title );
     1113                $title = esc_html($title);
    11051114                $output .= "$pad$title";
    11061115                $output .= "</option>\n";
    11071116        }