Skip to content

Commit

Permalink
Merge pull request #95 from jcvignoli/master
Browse files Browse the repository at this point in the history
wp_register_script() parameters definition has changed in WP 6.3
  • Loading branch information
marekdedic authored Jan 6, 2025
2 parents 0d23fad + be07fe4 commit 58095f4
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions stubs/WordPress/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1610,15 +1610,18 @@ function wp_rand( $min = 0, $max = 0 ) {
}

/**
* @param string $handle
* @param string|bool $src
* @param array<string> $deps
* @param string|bool|null $ver
* @param bool $in_footer
* @param string $handle
* @param string|bool $src
* @param array<string> $deps
* @param string|bool|null $ver
* @param bool|array{strategy?: string, in_footer?: bool} $args {
* @type string $strategy
* @type bool $in_footer
* }
*
* @return bool
*/
function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) {
function wp_register_script( $handle, $src, $deps = array(), $ver = false, $args = array() ) {
}

/**
Expand Down

0 comments on commit 58095f4

Please sign in to comment.