WordPress.org

Make WordPress Core

Changeset 25350


Ignore:
Timestamp:
09/11/2013 08:45:43 AM (7 years ago)
Author:
dd32
Message:

Fix the action that set_site_transient() fires so as not to include the private option prefix. This brings set_site_transient() back in line with it's documented behaviour, and the behaviour of all other transient functions. Fixes #25213

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r25289 r25350  
    10551055    } else {
    10561056        $transient_timeout = '_site_transient_timeout_' . $transient;
    1057         $transient = '_site_transient_' . $transient;
    1058         if ( false === get_site_option( $transient ) ) {
     1057        $option = '_site_transient_' . $transient;
     1058        if ( false === get_site_option( $option ) ) {
    10591059            if ( $expiration )
    10601060                add_site_option( $transient_timeout, time() + $expiration );
    1061             $result = add_site_option( $transient, $value );
     1061            $result = add_site_option( $option, $value );
    10621062        } else {
    10631063            if ( $expiration )
    10641064                update_site_option( $transient_timeout, time() + $expiration );
    1065             $result = update_site_option( $transient, $value );
     1065            $result = update_site_option( $option, $value );
    10661066        }
    10671067    }
Note: See TracChangeset for help on using the changeset viewer.