We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df2101 commit 1ebcf7fCopy full SHA for 1ebcf7f
tests/phpunit/tests/general/feedLinksExtra.php
@@ -634,4 +634,15 @@ public function data_feed_links_extra_should_output_nothing_when_filters_return_
634
),
635
);
636
}
637
+
638
+ /**
639
+ * @ticket 63263
640
+ */
641
+ public function test_feed_links_extra_should_not_fail_if_global_post_empty() {
642
+ $post_id = self::factory()->post->create();
643
+ $this->go_to( get_permalink( $post_id ) );
644
+ $GLOBALS['post'] = null;
645
646
+ $this->assertEmpty( get_echo( 'feed_links_extra' ) );
647
+ }
648
0 commit comments