Docs: Add missing documentation for the $javascript parameter of the wp_inline_script_attributes filter.

See #53399


git-svn-id: https://develop.svn.wordpress.org/trunk@52127 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2021-11-10 18:39:40 +00:00
parent c3b6a5f44c
commit f60e4ba84f

View File

@ -2624,7 +2624,7 @@ function wp_print_script_tag( $attributes ) {
* @since 5.7.0
*
* @param string $javascript Inline JavaScript code.
* @param array $attributes Optional. Key-value pairs representing `<script>` tag attributes.
* @param array $attributes Optional. Key-value pairs representing `<script>` tag attributes.
* @return string String containing inline JavaScript code wrapped around `<script>` tag.
*/
function wp_get_inline_script_tag( $javascript, $attributes = array() ) {
@ -2636,9 +2636,10 @@ function wp_get_inline_script_tag( $javascript, $attributes = array() ) {
*
* @since 5.7.0
*
* @param array $attributes Key-value pairs representing `<script>` tag attributes.
* Only the attribute name is added to the `<script>` tag for
* entries with a boolean value, and that are true.
* @param array $attributes Key-value pairs representing `<script>` tag attributes.
* Only the attribute name is added to the `<script>` tag for
* entries with a boolean value, and that are true.
* @param string $javascript Inline JavaScript code.
*/
$attributes = apply_filters( 'wp_inline_script_attributes', $attributes, $javascript );