Ticket #20114: 20114.diff

File 20114.diff, 1.3 KB (added by soulseekah, 15 months ago)
  • wp-includes/class-wp-editor.php

     
    715715                        'suppress_filters' => true, 
    716716                        'update_post_term_cache' => false, 
    717717                        'update_post_meta_cache' => false, 
    718                         'post_status' => 'publish', 
     718                        'post_status' => array( 'publish', 'private' ), 
    719719                        'order' => 'DESC', 
    720720                        'orderby' => 'post_date', 
    721721                        'posts_per_page' => 20, 
     
    748748                                'title' => trim( esc_html( strip_tags( get_the_title( $post ) ) ) ), 
    749749                                'permalink' => get_permalink( $post->ID ), 
    750750                                'info' => $info, 
     751                                'post_status' => $post->post_status 
    751752                        ); 
    752753                } 
    753754 
  • wp-includes/js/wplink.dev.js

     
    527527                                        list += '<input type="hidden" class="item-permalink" value="' + this['permalink'] + '" />'; 
    528528                                        list += '<span class="item-title">'; 
    529529                                        list += this['title'] ? this['title'] : wpLinkL10n.noTitle; 
     530                                        if ( this['post_status'] == 'private' ) 
     531                                                list += ' (Private)' 
    530532                                        list += '</span><span class="item-info">' + this['info'] + '</span></li>'; 
    531533                                        alt = ! alt; 
    532534                                });