Make WordPress Core


Ignore:
Timestamp:
08/23/2012 08:01:10 PM (13 years ago)
Author:
ryan
Message:

Remove return ref from all calls to get_post()
Return WP_Post from get_default_post_to_edit()
Replace all calls to get_page() with get_post()
see #21309

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r21570 r21597  
    13721372            wp_notify_moderator($comment_ID);
    13731373
    1374         $post = &get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment
     1374        $post = get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment
    13751375
    13761376        if ( get_option('comments_notify') && $commentdata['comment_approved'] && ( ! isset( $commentdata['user_id'] ) || $post->post_author != $commentdata['user_id'] ) )
Note: See TracChangeset for help on using the changeset viewer.