diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php index 3e1740f614209..8eb1e24e93ff2 100644 --- a/src/wp-includes/admin-bar.php +++ b/src/wp-includes/admin-bar.php @@ -455,6 +455,7 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) { * * @since 5.9.0 * @since 6.3.0 Added `$_wp_current_template_id` global for editing of current template directly from the admin bar. + * @since 6.6.0 Added the `canvas` query arg to the Site Editor link. * * @global string $_wp_current_template_id * @@ -481,6 +482,7 @@ function wp_admin_bar_edit_site_menu( $wp_admin_bar ) { array( 'postType' => 'wp_template', 'postId' => $_wp_current_template_id, + 'canvas' => 'edit', ), admin_url( 'site-editor.php' ) ),