Ticket #28467: set_transient.3.patch
| File set_transient.3.patch, 1.7 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/option.php
620 620 * 621 621 * @since 2.8.0 622 622 * 623 * @param string $transient Transient name. Expected to not be SQL-escaped. 624 * @param mixed $value Transient value. Must be serializable if non-scalar. Expected to not be SQL-escaped. 625 * @param int $expiration Time until expiration in seconds, default 0 623 * @param string $transient Transient name. Expected to not be SQL-escaped. Must be 624 * 45 characters or fewer in length. 625 * @param mixed $value Transient value. Must be serializable if non-scalar. 626 * Expected to not be SQL-escaped. 627 * @param int $expiration Optional. Time until expiration in seconds. Default 0. 626 628 * @return bool False if value was not set and true if value was set. 627 629 */ 628 630 function set_transient( $transient, $value, $expiration = 0 ) { … … 1360 1362 * 1361 1363 * @see set_transient() 1362 1364 * 1363 * @param string $transient Transient name. Expected to not be SQL-escaped. 1364 * @param mixed $value Transient value. Expected to not be SQL-escaped. 1365 * @param int $expiration Time until expiration in seconds, default 0 1365 * @param string $transient Transient name. Expected to not be SQL-escaped. Must be 1366 * 40 characters or fewer in length. 1367 * @param mixed $value Transient value. Expected to not be SQL-escaped. 1368 * @param int $expiration Optional. Time until expiration in seconds. Default 0. 1366 1369 * @return bool False if value was not set and true if value was set. 1367 1370 */ 1368 1371 function set_site_transient( $transient, $value, $expiration = 0 ) {