[wp-trac] [WordPress Trac] #33933: Avoid PHP 4 warnings for PHP 5
WordPress Trac
noreply at wordpress.org
Sun Sep 20 09:57:47 UTC 2015
#33933: Avoid PHP 4 warnings for PHP 5
--------------------------+-----------------------------
Reporter: nmeiser | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
wp-includes/widgets.php
No more warnings or errors for the right use of $this->WP_Widget to create
a new object of the class WP_Widget with PHP 5.
The old helper constructor method WP_Widget() is only for PHP 4, so only
those guys should get a deprecated warning/error message!!
!!Please check all implementations of _deprecated_constructor in the
methods that are named like the class name inside the wordpress project!!
$php_version is not working at this place!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33933>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list