WordPress.org

Make WordPress Core

Changeset 50046


Ignore:
Timestamp:
01/28/2021 12:33:28 AM (9 months ago)
Author:
whyisjake
Message:

REST API: Fix fatal error on multisite when calling the single item plugin routes.

The is_network_only_plugin and is_plugin_active functions are not available in a front-end context and must be specifically loaded.

This commit brings the changes from [49952] to the 5.6 branch.

Props oakesjosh, johnbillion, TimothyBlynJacobs.

Fixes #52205.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.