Skip to content
Permalink
Browse files

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

See #47824.

git-svn-id: https://develop.svn.wordpress.org/trunk@46080 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 7, 2019
1 parent 6905468 commit d48d56e101a7a6ba6ccebffbf26c40ecd898ea11
Showing with 1 addition and 10 deletions.
  1. +1 −1 src/wp-includes/post-template.php
  2. +0 −9 tests/phpunit/tests/post/getTheContent.php
@@ -282,7 +282,7 @@ function get_the_content( $more_link_text = null, $strip_teaser = false, $post =
return '';
}
if ( null === $post && in_the_loop() ) {
if ( null === $post ) {
$elements = compact( 'page', 'more', 'preview', 'pages', 'multipage' );
} else {
$elements = generate_postdata( $_post );
@@ -75,13 +75,4 @@ public function test_should_respect_pagination_of_inner_post() {
$this->assertSame( 'Bang', $found );
}
/**
* @ticket 47824
*/
public function test_should_fall_back_to_post_global_outside_of_the_loop() {
$GLOBALS['post'] = self::factory()->post->create( array( 'post_content' => 'Foo' ) );
$this->assertSame( 'Foo', get_the_content() );
}
}

0 comments on commit d48d56e

Please sign in to comment.
You can’t perform that action at this time.