[wp-trac] [WordPress Trac] #61103: update all update_option calling in core to set the autoload option
WordPress Trac
noreply at wordpress.org
Wed Aug 14 15:55:26 UTC 2024
#61103: update all update_option calling in core to set the autoload option
--------------------------------+--------------------------
Reporter: pbearne | Owner: pbearne
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.7
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch early | Focuses: performance
--------------------------------+--------------------------
Comment (by pbearne):
Replying to [comment:22 SergeyBiryukov]:
> Replying to [comment:11 swissspidy]:
> > Can we achieve this with a one time database migration instead of (or
in addition to) changing all `update_option` calls.
>
> Yeah, converting a few options to be non-autoloaded seems fine, but
changing every `update_option()` call in core to specify the default value
seems redundant to me.
This new sniff would require them all to be set
https://github.com/WordPress/WordPress-Coding-Standards/issues/2473
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61103#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list