diff --git a/backport-changelog/6.9/8063.md b/backport-changelog/6.9/8063.md index 847d4c62ed3d7b..9b83fa2b4a46ad 100644 --- a/backport-changelog/6.9/8063.md +++ b/backport-changelog/6.9/8063.md @@ -4,7 +4,6 @@ https://github.com/WordPress/wordpress-develop/pull/8063 * https://github.com/WordPress/gutenberg/pull/71840 * https://github.com/WordPress/gutenberg/pull/72156 * https://github.com/WordPress/gutenberg/pull/71811 -* https://github.com/WordPress/gutenberg/pull/72003 * https://github.com/WordPress/gutenberg/pull/72029 * https://github.com/WordPress/gutenberg/pull/72049 * https://github.com/WordPress/gutenberg/pull/72011 diff --git a/lib/compat/wordpress-6.9/site-editor-redirect.php b/lib/compat/wordpress-6.9/site-editor-redirect.php deleted file mode 100644 index 401a5fae06d5ab..00000000000000 --- a/lib/compat/wordpress-6.9/site-editor-redirect.php +++ /dev/null @@ -1,39 +0,0 @@ - /wp_registered_template/tt5//home - if ( isset( $_REQUEST['p'] ) && preg_match( '#^/wp_template/([a-zA-Z0-9-]+//[a-zA-Z0-9-]+)$#', $_REQUEST['p'], $matches ) ) { - return add_query_arg( array( 'p' => '/wp_registered_template/' . $matches[1] ), remove_query_arg( array( 'p' ) ) ); - } - - return false; -} - -/** - * Redirect old site editor urls to the new updated ones. - */ -function gutenberg_redirect_site_editor_deprecated_urls_6_9() { - $redirection = gutenberg_get_site_editor_redirection_6_9(); - if ( false !== $redirection ) { - wp_safe_redirect( $redirection ); - exit; - } -} -add_action( 'admin_init', 'gutenberg_redirect_site_editor_deprecated_urls_6_9' ); diff --git a/lib/load.php b/lib/load.php index be700ad25660ab..486bcfc54a916e 100644 --- a/lib/load.php +++ b/lib/load.php @@ -84,7 +84,6 @@ function gutenberg_is_experiment_enabled( $name ) { require __DIR__ . '/compat/wordpress-6.9/customizer-preview-custom-css.php'; require __DIR__ . '/compat/wordpress-6.9/command-palette.php'; require __DIR__ . '/compat/wordpress-6.9/preload.php'; -require __DIR__ . '/compat/wordpress-6.9/site-editor-redirect.php'; // WordPress 7.0 compat. require __DIR__ . '/compat/wordpress-7.0/php-only-blocks.php';