[wp-trac] [WordPress Trac] #61352: PHP deprecation notice in wp_title()
WordPress Trac
noreply at wordpress.org
Sun Nov 2 23:01:57 UTC 2025
#61352: PHP deprecation notice in wp_title()
--------------------------+------------------------
Reporter: nexbridge | Owner: joedolson
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.9
Component: Themes | Version: 6.5.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------
Comment (by joedolson):
Checking `! is_string()` has advantages in that it will also guard against
other non-string types, should the value be passed as an array or object.
That seems improbable, but it's hypothetically possible.
The current case would cause problems in the relatively obscure case that
the title of a page is 0. It's unlikely, but it is possible and I can
think of legitimate use cases for it. I don't think it's urgent to make
this decision for the next beta, but should be resolved before RC.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61352#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list