Blender-org web-assets v2 upgrade #104116
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Include this template part with 'get_template_part' to use BWA's search and replace development utilities for WordPress.
|
* 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';
|
$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;
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user