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 e498313a17 - Show all commits

View File

@ -1,4 +1,3 @@
<?php
/**
* Include this template part with 'get_template_part' to use BWA's search and replace development utilities for WordPress.
@ -9,4 +8,10 @@ $wp_search_and_replace_path = get_template_directory() . '/assets_shared/dev-uti
$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;
wp_search_and_replace($map_file_name_path, $dry_mode = true);
// Check if 'drymode' query string is present and equals 'true' to run in dry mode
if (isset($_GET['drymode']) && $_GET['drymode'] == 'true') {
$dry_mode = true;
}
wp_search_and_replace($map_file_name_path, $dry_mode);