Changeset 35431
- Timestamp:
- 10/29/2015 11:51:21 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/option.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r35170 r35431 713 713 } else { 714 714 $transient_timeout = '_transient_timeout_' . $transient; 715 $transient = '_transient_' . $transient;716 if ( false === get_option( $transient ) ) {715 $transient_option = '_transient_' . $transient; 716 if ( false === get_option( $transient_option ) ) { 717 717 $autoload = 'yes'; 718 718 if ( $expiration ) { … … 720 720 add_option( $transient_timeout, time() + $expiration, '', 'no' ); 721 721 } 722 $result = add_option( $transient , $value, '', $autoload );722 $result = add_option( $transient_option, $value, '', $autoload ); 723 723 } else { 724 724 // If expiration is requested, but the transient has no timeout option, … … 727 727 if ( $expiration ) { 728 728 if ( false === get_option( $transient_timeout ) ) { 729 delete_option( $transient );729 delete_option( $transient_option ); 730 730 add_option( $transient_timeout, time() + $expiration, '', 'no' ); 731 $result = add_option( $transient , $value, '', 'no' );731 $result = add_option( $transient_option, $value, '', 'no' ); 732 732 $update = false; 733 733 } else { … … 736 736 } 737 737 if ( $update ) { 738 $result = update_option( $transient , $value );738 $result = update_option( $transient_option, $value ); 739 739 } 740 740 }
Note: See TracChangeset
for help on using the changeset viewer.