[wp-trac] [WordPress Trac] #45960: plugin_basename() fails on windows path
WordPress Trac
noreply at wordpress.org
Fri Oct 24 15:10:48 UTC 2025
#45960: plugin_basename() fails on windows path
-------------------------------------+------------------------------
Reporter: dovyp | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Changes (by callumbw95):
* keywords: reporter-feedback => reporter-feedback close
Comment:
Hi All,
I've had a quick look into the Windows path problem within the
`plugin_basename()` function, and it appears to have existed before
WordPress 4.6. The following changeset
[https://core.trac.wordpress.org/changeset/37332 changeset (37332)]
introduced a fix by placing `wp_normalize_path()` at the start of the
function. This ensures Windows paths are correctly normalized before
further processing, addressing the mixed path separator problems observed
in Windows development environments.
Related: #29154
Since I haven't been able to reproduce this issue in the current release
(6.8.3), I'm curious if @dovyp was using an earlier WordPress version? Is
this still happening for you? If so, could you please provide more details
about your setup? Would you be able to install the
[https://wordpress.org/plugins/test-reports/ Test Reports] plugin and
generate a report? Sharing this would help the community assist you
further in resolving this.
However as this ticket is so old I have added the `close` tag, but of
course if there is more to be said here please feel free to remove it and
continue the conversation. 😃
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45960#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list