[wp-trac] [WordPress Trac] #52205: REST API: Plugins Controller single plugin route fatal errors on multisite

WordPress Trac noreply at wordpress.org
Thu Jan 28 00:33:42 UTC 2021


#52205: REST API: Plugins Controller single plugin route fatal errors on multisite
-------------------------------------------------+-------------------------
 Reporter:  TimothyBlynJacobs                    |       Owner:
                                                 |  TimothyBlynJacobs
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.6.1
Component:  REST API                             |     Version:  5.5
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch fixed-      |     Focuses:  rest-api
  major                                          |
-------------------------------------------------+-------------------------
Changes (by whyisjake):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50046" 50046]:
 {{{
 #!CommitTicketReference repository="" revision="50046"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52205#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list