Blender-org web-assets v2 upgrade #104116
@ -5,6 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$wp_search_and_replace_path = get_template_directory() . '/assets_shared/dev-utils/wp-search-and-replace.php';
|
$wp_search_and_replace_path = get_template_directory() . '/assets_shared/dev-utils/wp-search-and-replace.php';
|
||||||
|
|
||||||
|
// Set path to the search and replace map file base
|
||||||
$map_file_name_path = get_template_directory() . '/assets_shared/dev-utils/search-and-replace-map-v2-upgrade-wp.txt';
|
$map_file_name_path = get_template_directory() . '/assets_shared/dev-utils/search-and-replace-map-v2-upgrade-wp.txt';
|
||||||
|
|
||||||
include $wp_search_and_replace_path;
|
include $wp_search_and_replace_path;
|
||||||
@ -15,3 +17,12 @@ if (isset($_GET['drymode']) && $_GET['drymode'] == 'true') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
wp_search_and_replace($map_file_name_path, $dry_mode);
|
wp_search_and_replace($map_file_name_path, $dry_mode);
|
||||||
|
|
||||||
|
echo "<p><strong>Base search and replace</strong> has been executed using the map file: " . $map_file_name_path . "</p><hr>";
|
||||||
|
|
||||||
|
// Reset path to the search and replace map file post
|
||||||
|
$map_file_name_path = get_template_directory() . '/assets_shared/dev-utils/search-and-replace-map-v2-upgrade-post-wp.txt';
|
||||||
|
|
||||||
|
wp_search_and_replace($map_file_name_path, $dry_mode);
|
||||||
|
|
||||||
|
echo "<p><strong>Post search and replace</strong> has been executed using the map file: " . $map_file_name_path . "</p><hr>";
|
||||||
|
Loading…
Reference in New Issue
Block a user