Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #55969, comment 4


Ignore:
Timestamp:
06/13/2022 11:00:46 AM (18 months ago)
Author:
giuse
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55969, comment 4

    initial v1  
    4242        $transient_timeout = '_transient_timeout_' . $transient;
    4343        $transient_option  = '_transient_' . $transient;
     44        $custom_autoload_is_valid = null !== $custom_autoload && in_array( $custom_autoload,array( 'no','yes',true,false ) );
    4445 
    4546        if ( false === get_option( $transient_option ) ) {
    46             $ccustom_autoload_is_valid = null !== $custom_autoload && in_array( $custom_autoload,array( 'no','yes',true,false ) );
     47
    4748            $autoload = $custom_autoload_is_valid ? $custom_autoload : 'yes';
    4849            if ( $expiration ) {