Make WordPress Core

Changeset 38825


Ignore:
Timestamp:
10/19/2016 08:43:55 AM (8 years ago)
Author:
swissspidy
Message:

Dashboard: Do not show 'Popular Plugin' UI if DISALLOW_FILE_MODS is set.

Props Mte90.
Fixes #37436.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r38705 r38825  
    11501150    );
    11511151
    1152     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' ) ) ) {
     1152    if ( ( ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS ) && ( ! is_multisite() && is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) {
    11531153        $feeds['plugins'] = array(
    11541154            'link'         => '',
Note: See TracChangeset for help on using the changeset viewer.