[wp-trac] [WordPress Trac] #58964: Introduce dedicated function to set autoload value of an option already in the database

WordPress Trac noreply at wordpress.org
Wed Aug 2 22:26:08 UTC 2023


#58964: Introduce dedicated function to set autoload value of an option already in
the database
--------------------------------+------------------------------
 Reporter:  flixos90            |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  performance
--------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Related/duplicate: #48393.

 @herregroen in comment:2:ticket:48393:
 > I think changing `update_option` so that `autoload` is updated even if
 the value is unchanged would be by far the most intuitive and elegant way
 of doing things. Of course if neither the value nor the `autoload`
 property have been changed then nothing should happen.

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


More information about the wp-trac mailing list