Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #9444, comment 36


Ignore:
Timestamp:
08/19/2015 10:37:11 PM (11 years ago)
Author:
scottmas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9444, comment 36

    initial v1  
    22
    33Simply read the config file as a string and get rid of the offending require_once and then eval it.
    4 
    54    $configString = file_get_contents('some/path/to/wp-config.php');
    65    $configString = preg_replace('/require_once\(.*?\);/', '', $configString);