Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60510


Ignore:
Timestamp:
02/12/2024 04:10:51 PM (3 months ago)
Author:
hellofromTonya
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60510 – Description

    initial v1  
    1010
    1111* `str_replace()` is less performant than `substr()` (see https://3v4l.org/TbQ9U).
    12 Propose: calcuating the plugins' directory path's `strlen()` before the loop and switching to `substr()`.
     12Propose: calculating the plugins' directory path's `strlen()` before the loop and switching to `substr()`.
    1313
    1414Follow-up to [57545] / #22316 and [57592] / #60461.
     15
     16References:
     17* `str_replace()` https://www.php.net/manual/en/function.str-replace.php
     18* `substr()` https://www.php.net/manual/en/function.substr.php
     19* `strlen()` https://www.php.net/manual/en/function.strlen.php
     20* Show the comparison in action https://3v4l.org/TbQ9U.