WordPress.org

Make WordPress Core

Ticket #37436: 37436.2.patch

File 37436.2.patch, 820 bytes (added by Mte90, 3 years ago)

improved

  • src/wp-admin/includes/dashboard.php

     
    11491149                )
    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'         => '',
    11551155                        'url'          => array(