[wp-trac] [WordPress Trac] #48393: Fix from #38903 prevents options autoload parameter update

WordPress Trac noreply at wordpress.org
Mon Aug 28 21:00:43 UTC 2023


#48393: Fix from #38903 prevents options autoload parameter update
-------------------------------------+-----------------------------
 Reporter:  anonymized_16833402      |       Owner:  SergeyBiryukov
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  Future Release
Component:  Options, Meta APIs       |     Version:
 Severity:  major                    |  Resolution:
 Keywords:  2nd-opinion needs-patch  |     Focuses:  administration
-------------------------------------+-----------------------------

Comment (by flixos90):

 For reference, in https://core.trac.wordpress.org/ticket/58964#comment:12
 @boonebgorges outlines a few caveats with the idea proposed here: If we
 allow changing the autoload value without updating the option, what do we
 do with the return value of `update_option()`? Should it still return
 `false` because the option was not updated, or should it return `true`
 when the autoload value was updated, despite the option not being updated?
 Both of these would be somewhat confusing :/

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


More information about the wp-trac mailing list