[wp-trac] [WordPress Trac] #46850: Two parameters passed to delete_option in wp-includes/post.php. Should only pass one.

WordPress Trac noreply at wordpress.org
Mon Aug 5 07:30:41 UTC 2019


#46850: Two parameters passed to delete_option in wp-includes/post.php. Should only
pass one.
-------------------------------+---------------------
 Reporter:  diddledan          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  5.3
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------

Comment (by SergeyBiryukov):

 Thanks for the patch! Looking at [25686], the intention might have been to
 switch to `update_option()` instead, to avoid deleting and then recreating
 the option.

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


More information about the wp-trac mailing list