Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22630, comment 1


Ignore:
Timestamp:
11/29/2012 06:13:52 AM (11 years ago)
Author:
rmccue
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22630, comment 1

    initial v1  
    22> The `plugin_basename()` function uses a `preg_replace` statement to find path to the plugin relative from `WP_PLUGIN_DIR`. If the actual path to the plugin directory does not match case to `WP_PLUGIN_DIR`, the preg_replace will fail. This is because preg_replace is not case sensitive.
    33
    4 I think you mean it *is* case sensitive. This makes sense, since on every platform except Windows, paths are case sensitive.
     4I think you mean it '''is''' case sensitive. This makes sense, since on every platform except Windows, paths are case sensitive.
    55
    66Maybe this could be changed to be insensitive on Windows, but for most platforms, this is the correct behaviour.