Make WordPress Core

Changeset 5191


Ignore:
Timestamp:
04/06/2007 03:33:21 AM (17 years ago)
Author:
rob1n
Message:

Add private posts to Recent Posts for those who can read them. Props molecularbear. fixes #3877

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r5124 r5191  
    6262
    6363<?php
    64 if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) :
     64if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND " . get_private_posts_cap_sql('post') . " AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) :
    6565?>
    6666<div>
Note: See TracChangeset for help on using the changeset viewer.