[wp-trac] [WordPress Trac] #58821: add_option() called using deprecated parameter in upgrade_630()

WordPress Trac noreply at wordpress.org
Tue Jul 18 10:07:20 UTC 2023


#58821: add_option() called using deprecated parameter in upgrade_630()
------------------------------+---------------------------
 Reporter:  gudmdharalds      |       Owner:  spacedmonkey
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.3
Component:  Upgrade/Install   |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56258" 56258]:
 {{{
 #!CommitTicketReference repository="" revision="56258"
 Upgrade/Install: Add correct parameters to add_option in upgrade_630

 Introduced in [55854], `upgrade_630` function was introduced to update
 `can_compress_scripts` option to autoload. However the function
 `add_option` was invoked incorrectly, passing 3 parameters and not 4. The
 third parameter, which is deprecated, triggers a  deprecated argument
 warning. In this change, pass 4 parameters instead of 3.

 Props gudmdharalds, spacedmonkey, costdev, mukesh27.
 Fixes #58821.
 }}}

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


More information about the wp-trac mailing list