[wp-trac] [WordPress Trac] #50671: REST API plugins endpoint create item tests don't work in all environments
WordPress Trac
noreply at wordpress.org
Tue Jul 21 01:36:32 UTC 2020
#50671: REST API plugins endpoint create item tests don't work in all environments
-------------------------------+--------------------------------
Reporter: TimothyBlynJacobs | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: REST API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses: rest-api
-------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* owner: (none) => TimothyBlynJacobs
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48524" 48524]:
{{{
#!CommitTicketReference repository="" revision="48524"
REST API: Make plugin installation tests more robust on alternate test
environments.
The REST API plugin installation tests use the `upgrader_pre_download`
filter to avoid downloading the test plugin from WordPress.org.
Previously, this would apply to any upgrader, which caused issues if the
testing environment required a language update.
Now, the filter only overwrites the file if the `Plugin_Upgrader` is being
used which should hopefully prevent the issue.
Props pfefferle, TimothyBlynJacobs.
Fixes #50671.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50671#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list