Make WordPress Core

Changeset 56258


Ignore:
Timestamp:
07/18/2023 10:07:05 AM (16 months ago)
Author:
spacedmonkey
Message:

Upgrade/Install: Add correct parameters to add_option in upgrade_630

Introduced in [55854], upgrade_630 function was introduced to update can_compress_scripts option to autoload. However the function add_option was invoked incorrectly, passing 3 parameters and not 4. The third parameter, which is deprecated, triggers a deprecated argument warning. In this change, pass 4 parameters instead of 3.

Props gudmdharalds, spacedmonkey, costdev, mukesh27.
Fixes #58821.

File:
1 edited

Legend:

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

    r56176 r56258  
    23212321            if ( false !== $can_compress_scripts ) {
    23222322                delete_option( 'can_compress_scripts' );
    2323                 add_option( 'can_compress_scripts', $can_compress_scripts, 'yes' );
     2323                add_option( 'can_compress_scripts', $can_compress_scripts, '', 'yes' );
    23242324            }
    23252325        }
Note: See TracChangeset for help on using the changeset viewer.