Blender-org web-assets v2 upgrade #104116

Merged
Márton Lente merged 56 commits from web-assets-v2-upgrade into main 2024-08-13 17:27:59 +02:00
Showing only changes of commit 89c4e23e50 - Show all commits

View File

@ -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>";