Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60039


Ignore:
Timestamp:
12/08/2023 08:34:26 PM (2 years ago)
Author:
SergeyBiryukov
Comment:

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #56127.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60039

    • Property Status changed from new to closed
    • Property Resolution changed from to duplicate
    • Property Milestone changed from Awaiting Review to
  • Ticket #60039 – Description

    initial v1  
    11Running PHP 8.0.3
    22
    3 I receive the following error: 
    4 PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /var/www/html/marketing/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /var/www/html/marketing/wp-includes/class-wp-widget.php:163
     3I receive the following error:
     4`PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /var/www/html/marketing/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /var/www/html/marketing/wp-includes/class-wp-widget.php:163`
    55
    66The function call on line 163:   
     7{{{
    78public function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) {
     9}}}
    810
    911This needs to be updated to:
    10    public function __construct( $id_base=null, $name=null, $widget_options = array(), $control_options = array() ) {
    11 
     12{{{
     13public function __construct( $id_base=null, $name=null, $widget_options = array(), $control_options = array() ) {
     14}}}