[wp-trac] [WordPress Trac] #37436: "Popular Plugin" UI in WordPress News dashboard widget doesn't respect DISALLOW_FILE_MODS

WordPress Trac noreply at wordpress.org
Thu Jul 21 19:34:19 UTC 2016


#37436: "Popular Plugin" UI in WordPress News dashboard widget doesn't respect
DISALLOW_FILE_MODS
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Widgets          |    Version:
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:                   |
-----------------------------+-----------------------------
 Specifically, this conditional in `wp_dashboard_primary()`:

 {{{
 if ( ( ! is_multisite() && is_blog_admin() && current_user_can(
 'install_plugins' ) ) || ( is_network_admin() && current_user_can(
 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) {
 }}}

 If I have `DISALLOW_FILE_MODS` defined in my `wp-config.php`, then this
 particular component in the widget shouldn't be exposed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37436>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list