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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user