Commit 98ae37f
committed
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 WordPress#10907.
Follow-up to [58304].
Props dmsnell, jonsurrell.
See #64224, #61348.
git-svn-id: https://develop.svn.wordpress.org/trunk@61624 602fd350-edb4-49c9-b593-d223f7449a821 parent 6f6337b commit 98ae37f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
| 766 | + | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| |||
0 commit comments