diff --git a/wp-includes/option.php b/wp-includes/option.php index 760d5d91f9..6d9fe645c6 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -712,30 +712,30 @@ function set_transient( $transient, $value, $expiration = 0 ) { $result = wp_cache_set( $transient, $value, 'transient', $expiration ); } else { $transient_timeout = '_transient_timeout_' . $transient; - $transient = '_transient_' . $transient; - if ( false === get_option( $transient ) ) { + $transient_option = '_transient_' . $transient; + if ( false === get_option( $transient_option ) ) { $autoload = 'yes'; if ( $expiration ) { $autoload = 'no'; add_option( $transient_timeout, time() + $expiration, '', 'no' ); } - $result = add_option( $transient, $value, '', $autoload ); + $result = add_option( $transient_option, $value, '', $autoload ); } else { // If expiration is requested, but the transient has no timeout option, // delete, then re-create transient rather than update. $update = true; if ( $expiration ) { if ( false === get_option( $transient_timeout ) ) { - delete_option( $transient ); + delete_option( $transient_option ); add_option( $transient_timeout, time() + $expiration, '', 'no' ); - $result = add_option( $transient, $value, '', 'no' ); + $result = add_option( $transient_option, $value, '', 'no' ); $update = false; } else { update_option( $transient_timeout, time() + $expiration ); } } if ( $update ) { - $result = update_option( $transient, $value ); + $result = update_option( $transient_option, $value ); } } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 64bf9ce701..7dedec42aa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta2-35430'; +$wp_version = '4.4-beta2-35431'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.