[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
Tue Apr 9 14:25:47 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:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 `delete_option` expects one parameter but usage in the function
 `_reset_front_page_settings_for_post()` tries to send two arguments. The
 attached patch fixes it to send the required one parameter.

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


More information about the wp-trac mailing list