mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Docs: Add missing documentation for the $javascript
parameter of the wp_inline_script_attributes
filter.
See #53399 Built from https://develop.svn.wordpress.org/trunk@52127 git-svn-id: http://core.svn.wordpress.org/trunk@51719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5781b8c80e
commit
62fc5121f2
@ -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 );
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-52111';
|
||||
$wp_version = '5.9-alpha-52127';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user