Make WordPress Core

Ticket #48049: 48049.patch

File 48049.patch, 459 bytes (added by dkarfa, 6 years ago)
  • wp-load.php

     
    1616 * @package WordPress
    1717 */
    1818
     19/**
     20 * Exit try to access wp-config path.
     21 */
     22if ( strpos( $_SERVER['REQUEST_URI'], 'wp-config' ) !== false ) {
     23        die;
     24}
     25
    1926/** Define ABSPATH as this file's directory */
    2027if ( ! defined( 'ABSPATH' ) ) {
    2128        define( 'ABSPATH', dirname( __FILE__ ) . '/' );