Skip to content

Commit

Permalink
set_transient() third param $expiration is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvignoli committed Jan 28, 2025
1 parent 81de215 commit 7f94c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/WordPress/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ function set_theme_mod( $name, $value ) {
*
* @return bool
*/
function set_transient( $transient, $value, $expiration ) {
function set_transient( $transient, $value, $expiration = 0 ) {
}

/**
Expand Down

0 comments on commit 7f94c95

Please sign in to comment.