mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 01:38:35 +00:00
* Replace `preg_match_all()` and its secondary `str_replace()` call with `preg_replace_callback()`. * Fix case where paths beginning with `http` and `https` (but not `http:` and `https:`) were erroneously not counted as relative. * Improve code style and readability by consolidating conditions and returning once. * Use `str_starts_with()` consistently instead of `strpos()`. Follow-up to [52036], [52695], and [52754]. Fixes #58069. See #54243. Built from https://develop.svn.wordpress.org/trunk@55658 git-svn-id: http://core.svn.wordpress.org/trunk@55170 1a063a9b-81f0-0310-95a4-ce76da25c4cd