interconnectit / Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
GNU General Public License v3.0
4k stars 855 forks source link

Fix include #211

Closed Filoz closed 4 years ago

Filoz commented 7 years ago

Removed dirname(FILE) because it create a wrong path dirname(FILE) is called before at https://github.com/interconnectit/Search-Replace-DB/blob/4.0/index.php#L704

gianluigi-icit commented 4 years ago

Hello, thanks for the pull request, few lines above your changes

the variable $wp_path = dirname( __FILE__ );

your line seems redundant, feel free to reply and re-open this pull request

Filoz commented 4 years ago

Hi,

I removed a repetition that generates a wrong path: Before my suggested edit require(dirname(__FILE__) . "{$wp_path}/{$bootstrap_file}"); after require("{$wp_path}/{$bootstrap_file}");

gianluigi-icit commented 4 years ago

Could post an example please? We are testing again the 4.0 branch for a release, we don't have problems with paths.