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
This commit is contained in:
jonsurrell
2026-02-12 15:48:42 +00:00
parent 576b839129
commit 6109c149d5
2 changed files with 3 additions and 3 deletions

View File

@@ -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 );
}
}

View File

@@ -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.