WordPress.org

Make WordPress Core

Changeset 10904


Ignore:
Timestamp:
04/10/09 04:34:44 (5 years ago)
Author:
ryan
Message:

Notice fixes. Props DD32. fixes #9502

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r10847 r10904  
    369369<div id="ajax-response"></div> 
    370370 
    371 <?php } elseif ( 'moderated' == $_GET['comment_status'] ) { ?> 
     371<?php } elseif ( isset($_GET['comment_status']) && 'moderated' == $_GET['comment_status'] ) { ?> 
    372372<p><?php _e('No comments awaiting moderation&hellip; yet.') ?></p> 
    373373</form> 
  • trunk/wp-includes/post.php

    r10858 r10904  
    984984    $count = $wpdb->get_results( $wpdb->prepare( $query, $type ), ARRAY_A ); 
    985985 
    986     $stats = array( ); 
     986    $stats = array( 'publish' => 0, 'private' => 0, 'draft' => 0, 'pending' => 0, 'future' => 0 ); 
    987987    foreach( (array) $count as $row_num => $row ) { 
    988988        $stats[$row['post_status']] = $row['num_posts']; 
Note: See TracChangeset for help on using the changeset viewer.