[wp-trac] [WordPress Trac] #61268: PHP Deprecated: ltrim() in formatting esc_url.
WordPress Trac
noreply at wordpress.org
Wed May 22 18:32:20 UTC 2024
#61268: PHP Deprecated: ltrim() in formatting esc_url.
--------------------------+------------------------------
Reporter: neo2k23 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by neo2k23):
Replying to [comment:3 siliconforks]:
> Replying to [comment:2 neo2k23]:
> >
> However, your issue looks a bit more complicated as it seems that the
caller is the [https://wordpress.org/plugins/maintenance/ Maintenance]
plugin but it looks like the caller is not really at fault here. I would
guess you have some other plugin installed which disables XML-RPC?
>
> It might be helpful to post a list of all active plugins on your site.
(You can get this in the admin section by going to Tools → Site Health →
Info → Active Plugins.)
There is no such plugin active but the hoster blocks calls to XML-RPC.php
I will report it to the maintanenance mode plugin developer.
I still believe that checking in the esc_url function for being null would
not lead to all the plugins and theme developers to add their checks
before calling esc_url. Which would be preferable.
Until php 8.1 there was no warning and the return would still be a empty
url. What is against checking in the esc_url function?
Thank you for the replies and support.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61268#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list