[wp-trac] [WordPress Trac] #51594: WP_PLUGIN_DIR constant unintentionally breaks plugin tests
WordPress Trac
noreply at wordpress.org
Thu Oct 22 00:43:07 UTC 2020
#51594: WP_PLUGIN_DIR constant unintentionally breaks plugin tests
--------------------------------------+-----------------------------
Reporter: pierlo | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: high | Milestone: 5.6
Component: Build/Test Tools | Version: trunk
Severity: major | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49269" 49269]:
{{{
#!CommitTicketReference repository="" revision="49269"
Build/Test Tools: Only define `WP_PLUGIN_DIR` in when running core tests.
This takes into account non-core plugins that rely on `WP_PLUGIN_DIR`
being set to the expected plugin's directory in `WP_CONTENT_DIR`, or
already have the constant defined.
Follow-up to [49236].
Props pierlo.
Fixes #51594.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51594#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list