Make WordPress Core


Ignore:
Timestamp:
05/06/2024 04:33:27 PM (20 months ago)
Author:
joemcgill
Message:

Options: Update default autoload values used in core.

This updates the values used for the $autoload parameter in various functions to replace 'yes' and 'no' with 'on' and 'off', respectively.

Follow-up to [57920].

Props pbearne, mukesh27, joemcgill.
Fixes #61045. See #42441.

File:
1 edited

Legend:

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

    r56984 r58105  
    10131013    $lock   = "revision-upgrade-{$post->ID}";
    10141014    $now    = time();
    1015     $result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, 'no') /* LOCK */", $lock, $now ) );
     1015    $result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, 'off') /* LOCK */", $lock, $now ) );
    10161016
    10171017    if ( ! $result ) {
Note: See TracChangeset for help on using the changeset viewer.