Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "Generate New DB Table Prefix" bug
Problem: If the old DB table prefix happens to also exist elsewhere in the $table_prefix line in wp-config.php then after the change is executed, all pageloads break with "Configuration Error - Your wp-config.php file has an empty database table prefix, which is not supported." because $table_prefix has been renamed. eg: Changing the DB table prefix from "le_" to "foo_" means `$table_prefix="le_"` becomes `$tabfoo_prefix="foo_"` Solution: Split line at "=" and only apply change to last part instead of whole line
- Loading branch information