Make WordPress Core


Ignore:
Timestamp:
01/10/2008 08:51:07 PM (18 years ago)
Author:
westi
Message:

Notice fixing for wp-includes. See #5607 props filosofo.

File:
1 edited

Legend:

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

    r6551 r6592  
    158158function &get_post(&$post, $output = OBJECT, $filter = 'raw') {
    159159    global $wpdb;
     160    $null = null;
    160161
    161162    if ( empty($post) ) {
     
    163164            $_post = & $GLOBALS['post'];
    164165        else
    165             return null;
     166            return $null;
    166167    } elseif ( is_object($post) ) {
    167168        wp_cache_add($post->ID, $post, 'posts');
Note: See TracChangeset for help on using the changeset viewer.