[wp-trac] [WordPress Trac] #64992: PHP ltrim() deprecation
WordPress Trac
noreply at wordpress.org
Mon Mar 30 16:32:19 UTC 2026
#64992: PHP ltrim() deprecation
--------------------------+------------------------
Reporter: azchughtai | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Formatting | Version:
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Changes (by sabernhardt):
* status: new => closed
* component: General => Formatting
* version: 6.9.4 =>
* milestone: Awaiting Review =>
* keywords: needs-patch =>
* resolution: => duplicate
Old description:
> When I try to login with wordpress its showing this issues [30-Mar-2026
> 10:25:16 UTC] PHP Deprecated: ltrim(): Passing null to parameter #1
> ($string) of type string is deprecated in C:\Users\WPBrigade\Local Sites
> \loginpress-react\app\public\wp-includes\formatting.php on line 4496
New description:
When I try to login with wordpress its showing this issues
`[30-Mar-2026 10:25:16 UTC] PHP Deprecated: ltrim(): Passing null to
parameter #1 ($string) of type string is deprecated in
C:\Users\WPBrigade\Local Sites\loginpress-react\app\public\wp-
includes\formatting.php on line 4496`
--
Comment:
Hi and welcome to WordPress Core Trac!
The deprecation notice for `null` as the first parameter in `esc_url()`
has been reported on #61268.
The theme or plugin that makes that value `null` should be corrected. Your
directory name includes 'loginpress', so I would deactivate that plugin
first to see if the notice remains. Or if you have a PHP stack trace (or
backtrace), that could point to exactly where `esc_url()` is called.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64992#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list