[wp-trac] [WordPress Trac] #56127: WP_Widget constructor throws fatal ArgumentCountError

WordPress Trac noreply at wordpress.org
Tue Aug 8 13:10:58 UTC 2023


#56127: WP_Widget constructor throws fatal ArgumentCountError
-------------------------------------------+-------------------------------
 Reporter:  firefly2000                    |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:
Component:  Widgets                        |     Version:  6.0
 Severity:  normal                         |  Resolution:  invalid
 Keywords:  needs-patch reporter-feedback  |     Focuses:  coding-standards
-------------------------------------------+-------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:12 hellofromTonya]:
 > Why is this happening with WP 6.0 and beyond?
 > Hmm I'm not sure.
 [https://core.trac.wordpress.org/query?status=closed&component=Widgets&milestone=6.0&col=id&col=summary&col=status&col=owner&col=type&col=priority&col=milestone&order=priority
 There was only 1 Trac ticket in 6.0]: #54561 / [53158]. But the call to
 parent's constructor is correct.

 Thanks for the investigation! Looks like it was most likely a consequence
 of switching to a recent PHP version and updating WordPress at the same
 time. The fatal error on PHP 7.1+ made the issue in the affected plugins
 or themes more visible, but it does not appear to be specific to WP 6.0.

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


More information about the wp-trac mailing list