[wp-trac] [WordPress Trac] #54997: PHP8.1 throw 'deprecated' in WordPress 6.0-alpha-52650
WordPress Trac
noreply at wordpress.org
Wed Feb 9 20:32:48 UTC 2022
#54997: PHP8.1 throw 'deprecated' in WordPress 6.0-alpha-52650
-----------------------------+---------------------
Reporter: haozi | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch php81 | Focuses:
-----------------------------+---------------------
Comment (by jrf):
Deprecations are not errors. The functions in the `formatting.php` file
all suffer from similar issues and we should implement a **proper**,
consistent solution for all, which is why these issues have not been
addressed yet as a discussion is needed on the solution direction.
The only time it would be possible to get this deprecation notice, is if
the function is being called with a `null` as the `$string` parameter,
which is ''doing it wrong''. More than anything, the incorrect function
''call'', should be fixed. Not this function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54997#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list