mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
c3b6a5f44c
commit
f60e4ba84f
@ -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 );
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user