Make WordPress Core

Changes between Version 5 and Version 6 of Ticket #55270, comment 18


Ignore:
Timestamp:
05/29/2023 04:09:19 PM (21 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55270, comment 18

    v5 v6  
    331. The problem this ticket it trying to solve is that on older sites the `can_compress_scripts` option was added with `autoload = 'no'`. This patch was supposed to delete the old option and replace it with a new one with `autoload = 'yes'` which is the default. That should happen for both single site and multisite, however that is not the case? In addition there seem to be plugins that check this option so it has to always be set.
    442. The conditional that runs either `update_option()` or `update_site_option()` doesn't seem to be doing anything as that code runs "once in a blue moon". I.e. this part of the patch is totally pointless.
    5 3. The `'yes'` in `update_option( 'can_compress_scripts', 0, 'yes' );` is redundant and doesn't do anything as the option is switched to autoloading in `function upgrade_630()` (at least on single sites).
     53. The `'yes'` in `update_option( 'can_compress_scripts', 0, 'yes' );` is redundant and doesn't do anything. It is the default and also the option is switched to autoloading in `function upgrade_630()` (at least on single sites).