Make WordPress Core

Ticket #28467: set_transient.3.patch

File set_transient.3.patch, 1.7 KB (added by DrewAPicture, 12 years ago)
  • src/wp-includes/option.php

     
    620620 *
    621621 * @since 2.8.0
    622622 *
    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.
    626628 * @return bool False if value was not set and true if value was set.
    627629 */
    628630function set_transient( $transient, $value, $expiration = 0 ) {
     
    13601362 *
    13611363 * @see set_transient()
    13621364 *
    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.
    13661369 * @return bool False if value was not set and true if value was set.
    13671370 */
    13681371function set_site_transient( $transient, $value, $expiration = 0 ) {