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

WordPress Trac noreply at wordpress.org
Sat Jan 9 20:20:59 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  |     Focuses:  rest-api
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => closed
 * resolution:   => fixed


Comment:

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

 Props oakesjosh.
 Fixes #52205.
 }}}

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


More information about the wp-trac mailing list