[wp-trac] [WordPress Trac] #39802: Multisite: "No importers are available" error message shown to site admins, but not to network admins

WordPress Trac noreply at wordpress.org
Mon Feb 6 22:43:40 UTC 2017


#39802: Multisite: "No importers are available" error message shown to site admins,
but not to network admins
--------------------------+------------------------------
 Reporter:  thomaswm      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Import        |     Version:  4.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  multisite
--------------------------+------------------------------

Comment (by thomaswm):

 It seems that [https://core.trac.wordpress.org/browser/tags/4.7.2/src/wp-
 admin/import.php#L33 lines 33ff.] in `wp-admin/import.php` are responsible
 for this behaviour:

 {{{#!php
 if ( current_user_can( 'install_plugins' ) ) {
         // List of popular importer plugins from the WordPress.org API.
         $popular_importers = wp_get_popular_importers();
 } else {
         $popular_importers = array();
 }
 }}}

 ''Site'' administrators do not have the `install_plugins` capability, but
 they do have the `activate_plugins` capability, which is sufficient if the
 specific importer plugin is already installed.

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


More information about the wp-trac mailing list