Make WordPress Core

Changeset 25389


Ignore:
Timestamp:
09/12/2013 05:52:53 AM (11 years ago)
Author:
wonderboymusic
Message:

Don't assume $GLOBALS['post'] is set in tests/url.php.

See #25282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/url.php

    r25366 r25389  
    282282        $post_id2 = $this->factory->post->create();
    283283
     284        if ( ! isset( $GLOBALS['post'] ) )
     285            $GLOBALS['post'] = null;
    284286        $orig_post = $GLOBALS['post'];
    285287        $GLOBALS['post'] = get_post( $post_id2 );
Note: See TracChangeset for help on using the changeset viewer.