From 6109c149d56623714a21491ff1bacd19c131dd09 Mon Sep 17 00:00:00 2001 From: jonsurrell Date: Thu, 12 Feb 2026 15:48:42 +0000 Subject: [PATCH] HTML API: Use more universal syntax to call Closure variable. Replace `( $fn )( ...$args )` syntax with equivalent `call_user_func( $fn, ...$args )` to prevent an issue with the WordPress documentation parser. The parser would fail when encountering this syntax, preventing documentation generation. Developed in https://github.com/WordPress/wordpress-develop/pull/10907. Follow-up to [58304]. Props dmsnell, jonsurrell. See #64224, #61348. Built from https://develop.svn.wordpress.org/trunk@61624 git-svn-id: http://core.svn.wordpress.org/trunk@60935 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/html-api/class-wp-html-open-elements.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/html-api/class-wp-html-open-elements.php b/wp-includes/html-api/class-wp-html-open-elements.php index 210492ab9a..aee5dccfb0 100644 --- a/wp-includes/html-api/class-wp-html-open-elements.php +++ b/wp-includes/html-api/class-wp-html-open-elements.php @@ -715,7 +715,7 @@ class WP_HTML_Open_Elements { } if ( null !== $this->push_handler ) { - ( $this->push_handler )( $item ); + call_user_func( $this->push_handler, $item ); } } @@ -763,7 +763,7 @@ class WP_HTML_Open_Elements { } if ( null !== $this->pop_handler ) { - ( $this->pop_handler )( $item ); + call_user_func( $this->pop_handler, $item ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index c5b807e2df..f76a3a8757 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61623'; +$wp_version = '7.0-alpha-61624'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.