Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #56127


Ignore:
Timestamp:
04/24/2023 06:47:34 PM (2 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56127

    • Property Keywords reporter-feedback php8 added
    • Property Severity changed from blocker to normal
  • Ticket #56127 – Description

    initial v4  
    11In WordPress core 6.0, plugins and themes that register widgets cause a fatal error for sites running on PHP 8.0. Here is an example:
    2 
    3 **Uncaught ArgumentCountError:** Too few arguments to function WP_Widget::__construct(), 0 passed
    4 
     2{{{
     3Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed
     4}}}
    55A solution that is working for me is to edit line 61 of wp-includes/class-wp-widget-factory.php so that
    66{{{