[wp-trac] [WordPress Trac] #22630: plugin_basename() fails on case-sensitive plugin directories
WordPress Trac
noreply at wordpress.org
Thu Nov 29 06:13:18 UTC 2012
#22630: plugin_basename() fails on case-sensitive plugin directories
--------------------------+------------------------------
Reporter: bungeshea | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by rmccue):
Replying to [ticket:22630 bungeshea]:
> 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.
I think you mean it *is* case sensitive. This makes sense, since on every
platform except Windows, paths are case sensitive.
Maybe this could be changed to be insensitive on Windows, but for most
platforms, this is the correct behaviour.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22630#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list