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 6eaed8a commit 3df46afCopy full SHA for 3df46af
tests/phpunit/tests/shortcode.php
@@ -447,7 +447,13 @@ public function data_strip_shortcodes() {
447
* @ticket 26649
448
*/
449
public function test_escaped_shortcode_should_not_execute() {
450
- add_shortcode( 'example', fn () => 'foo' );
+ add_shortcode(
451
+ 'example',
452
+ function () {
453
+ return 'foo';
454
+ }
455
+ );
456
+
457
$this->assertSame( '[example]', do_shortcode( strip_shortcodes( '[[example]]' ) ) );
458
}
459
0 commit comments