From d2da25890db03d55d26dfc296aea91ad336af584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Wrede?= Date: Mon, 10 Oct 2022 15:30:46 +0200 Subject: [PATCH] Fix: PHP 8.1 Deprecation --- lib/compat/plugin/edit-site-routes-backwards-compat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/plugin/edit-site-routes-backwards-compat.php b/lib/compat/plugin/edit-site-routes-backwards-compat.php index 4457437505069..a99dba92cca27 100644 --- a/lib/compat/plugin/edit-site-routes-backwards-compat.php +++ b/lib/compat/plugin/edit-site-routes-backwards-compat.php @@ -28,7 +28,7 @@ */ function gutenberg_site_editor_menu() { if ( wp_is_block_theme() ) { - add_submenu_page( null, null, null, 'edit_theme_options', 'gutenberg-edit-site', '__return_empty_string' ); + add_submenu_page( '', '', '', 'edit_theme_options', 'gutenberg-edit-site', '__return_empty_string' ); } } add_action( 'admin_menu', 'gutenberg_site_editor_menu', 9 );