WordPress.org

Make WordPress Core

Ticket #4198: 4198.diff

File 4198.diff, 477 bytes (added by rob1n, 7 years ago)
  • wp-settings.php

     
    194194 
    195195require (ABSPATH . WPINC . '/vars.php'); 
    196196 
     197if ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { 
     198        $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; 
     199} 
     200 
    197201// Check for hacks file if the option is enabled 
    198202if (get_option('hack_file')) { 
    199203        if (file_exists(ABSPATH . '/my-hacks.php'))