Make WordPress Core

Changeset 46080


Ignore:
Timestamp:
09/07/2019 07:32:42 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Revert [46079] pending test failure investigation.

See #47824.

Location:
trunk
Files:
2 edited

Legend:

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

    r46079 r46080  
    283283    }
    284284
    285     if ( null === $post && in_the_loop() ) {
     285    if ( null === $post ) {
    286286        $elements = compact( 'page', 'more', 'preview', 'pages', 'multipage' );
    287287    } else {
  • trunk/tests/phpunit/tests/post/getTheContent.php

    r46079 r46080  
    7676        $this->assertSame( 'Bang', $found );
    7777    }
    78 
    79     /**
    80      * @ticket 47824
    81      */
    82     public function test_should_fall_back_to_post_global_outside_of_the_loop() {
    83         $GLOBALS['post'] = self::factory()->post->create( array( 'post_content' => 'Foo' ) );
    84 
    85         $this->assertSame( 'Foo', get_the_content() );
    86     }
    8778}
Note: See TracChangeset for help on using the changeset viewer.