WordPress.org

Make WordPress Core

Ticket #37436: 37436.patch

File 37436.patch, 610 bytes (added by Mte90, 3 years ago)
  • src/wp-admin/includes/dashboard.php

     
    11481148                        'show_date'    => 0,
    11491149                )
    11501150        );
     1151       
     1152        if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) {
     1153                return false;
     1154        }
    11511155
    11521156        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' ) ) ) {
    11531157                $feeds['plugins'] = array(