Make WordPress Core

Ticket #46286: 46286.0.diff

File 46286.0.diff, 1.4 KB (added by vanyukov, 5 years ago)
  • wp-admin/includes/plugin.php

     
    387387                $wp_plugins[ $plugin_file ] = $plugin_data;
    388388        }
    389389
    390         if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php' ) <= 30 ) { // silence is golden
     390        if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php' ) <= 64 ) { // silence is golden
    391391                unset( $wp_plugins['index.php'] );
    392392        }
    393393
  • wp-content/index.php

     
    11<?php
    22// Silence is golden.
     3header( 'HTTP/1.0 404 Not Found' );
  • wp-content/plugins/index.php

     
    11<?php
    22// Silence is golden.
     3header( 'HTTP/1.0 404 Not Found' );
  • wp-content/themes/index.php

     
    11<?php
    22// Silence is golden.
     3header( 'HTTP/1.0 404 Not Found' );