diff --git a/projects/packages/jetpack-mu-wpcom/changelog/remove-unnecessary-textdomain-filter b/projects/packages/jetpack-mu-wpcom/changelog/remove-unnecessary-textdomain-filter new file mode 100644 index 0000000000000..8c6a862e7267c --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/remove-unnecessary-textdomain-filter @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +jetpack-mu-wpcom: remove unneeded filter diff --git a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php index 5d43dbac4bb82..c8fb386af3e91 100644 --- a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php +++ b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php @@ -28,24 +28,6 @@ public static function init() { return; } - add_filter( - 'load_script_textdomain_relative_path', - function ( $relative ) { - // Check if $relative is a string and contains the required segment - if ( str_contains( $relative, 'vendor/automattic/jetpack-mu-wpcom/' ) ) { - $pattern = '#^(?:production|staging|moon|sun)/#'; // Matches the environment prefix on Simple Sites - - if ( preg_match( $pattern, $relative ) ) { - $relative = preg_replace( $pattern, '', $relative ); // Remove the environment prefix - } - } - - return $relative; - }, - 10, - 2 - ); - // Shared code for src/features. require_once self::PKG_DIR . 'src/common/index.php'; // phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.NotAbsolutePath require_once __DIR__ . '/utils.php'; diff --git a/projects/plugins/mu-wpcom-plugin/changelog/remove-unnecessary-textdomain-filter b/projects/plugins/mu-wpcom-plugin/changelog/remove-unnecessary-textdomain-filter new file mode 100644 index 0000000000000..5147258e91102 --- /dev/null +++ b/projects/plugins/mu-wpcom-plugin/changelog/remove-unnecessary-textdomain-filter @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: removed an unused filter + + diff --git a/projects/plugins/wpcomsh/changelog/remove-unnecessary-textdomain-filter b/projects/plugins/wpcomsh/changelog/remove-unnecessary-textdomain-filter new file mode 100644 index 0000000000000..5147258e91102 --- /dev/null +++ b/projects/plugins/wpcomsh/changelog/remove-unnecessary-textdomain-filter @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: removed an unused filter + +