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

WordPress Trac noreply at wordpress.org
Mon Aug 7 22:46:51 UTC 2023


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

Comment (by hellofromTonya):

 #58176 noted the error occurred with the [https://wordpress.org/plugins
 /minimeta-widget/ MiniMeta Widget plugin].
 [https://plugins.trac.wordpress.org/browser/minimeta-widget/trunk/app
 /widgets-wp.php Looking at its widget code], the code has not been updated
 and appears to use PHP 4 code. It will fatal error because it is using the
 `WP_Widget` constructor rather than its own,
 [https://developer.wordpress.org/themes/functionality/widgets/ per the
 documentation].

 I share this plugin as an example for anyone experiencing this problem.

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


More information about the wp-trac mailing list