Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #61103, comment 25


Ignore:
Timestamp:
08/14/2024 05:44:19 PM (21 months ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #61103, comment 25

    initial v1  
    22> Can we achieve this with a one time database migration instead of (or in addition to) changing all `update_option` calls.
    33
    4 I'm not sure. I guess the way that core uses options, in most cases `update_option()` truly just ''updates'' the option (rather than inserting it), so in those cases it's fine to not pass it. But for new options it should be passed.
     4I'm not sure. I guess the way that core uses options, in most cases `update_option()` truly just ''updates'' the option (rather than inserting it), so in those cases it's fine to not pass it. But for new options it should be passed. For all the options that are prepopulated during WP installation and never deleted, a once-off migration would work.
    55
    66@SergeyBiryukov