From 1427d84abc3d772770b706fd77e69ad8affdead1 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 29 Sep 2023 21:37:06 +0000 Subject: [PATCH] Customize: Harden and modernize URL manipulation in `WP_Customize_Manager::remove_frameless_preview_messenger_channel()`. Since IE11 is no longer supported, the `URL` and `URLSearchParams` APIs can now be leveraged for simpler and more robust URL manipulation. This was done similarly in [56383] for `embed.js`. Props nicolefurlan, dmsnell, westonruter. Fixes #59480. git-svn-id: https://develop.svn.wordpress.org/trunk@56749 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index c1cf81f142..24f82510bd 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -2089,22 +2089,13 @@ final class WP_Customize_Manager { ?>