Make WordPress Core

Changeset 12532


Ignore:
Timestamp:
12/24/2009 09:30:12 AM (16 years ago)
Author:
markjaquith
Message:

Make sure the post global is actually an object before we treat it like one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r12515 r12532  
    988988 */
    989989function get_adjacent_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $previous = true) {
    990     if ( $previous && is_attachment() )
     990    if ( $previous && is_attachment() && is_object( $GLOBALS['post'] ) )
    991991        $post = & get_post($GLOBALS['post']->post_parent);
    992992    else
Note: See TracChangeset for help on using the changeset viewer.