From 7f94c95a68ec2e9be9cb8188111edec0c77652ab Mon Sep 17 00:00:00 2001 From: jcvignoli Date: Mon, 27 Jan 2025 22:45:50 -0300 Subject: [PATCH] set_transient() third param $expiration is optional --- stubs/WordPress/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/WordPress/functions.php b/stubs/WordPress/functions.php index e679c73..cbc29a8 100644 --- a/stubs/WordPress/functions.php +++ b/stubs/WordPress/functions.php @@ -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 ) { } /**