[wp-trac] [WordPress Trac] #61103: update all update_option calling in core to set the autoload option

WordPress Trac noreply at wordpress.org
Tue Aug 6 22:44:27 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 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61103#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list