[wp-trac] [WordPress Trac] #48252: Consistent deprecation of PHP 4 constructors
WordPress Trac
noreply at wordpress.org
Tue Oct 8 11:49:20 UTC 2019
#48252: Consistent deprecation of PHP 4 constructors
------------------------------------+-----------------------------
Reporter: jrf | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: minor | Keywords: has-patch
Focuses: docs, coding-standards |
------------------------------------+-----------------------------
While testing a new sniff for WPCS, I ran into an number of
inconsistencies in the use of the
[https://developer.wordpress.org/reference/functions/_deprecated_constructor/
`_deprecated_constructor()`] function.
In particular:
* Missing `@deprecated` tags in the function docblock of some PHP4
constructors.
* Some PHP4 constructors in (external) dependencies not being marked as
deprecated.
The attached patches would fix these inconsistencies.
Previous ticket: #31982
Related: #41121
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48252>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list