diff --git a/backport-changelog/6.8/8372.md b/backport-changelog/6.8/8372.md new file mode 100644 index 0000000000000..ae17bf6fdc461 --- /dev/null +++ b/backport-changelog/6.8/8372.md @@ -0,0 +1,3 @@ +https://github.com/WordPress/wordpress-develop/pull/8372 + +* https://github.com/WordPress/gutenberg/pull/69271 diff --git a/lib/compat/wordpress-6.8/admin-bar.php b/lib/compat/wordpress-6.8/admin-bar.php new file mode 100644 index 0000000000000..9fbc840d9fa08 --- /dev/null +++ b/lib/compat/wordpress-6.8/admin-bar.php @@ -0,0 +1,32 @@ +add_node( + array( + 'id' => 'site-editor', + 'title' => __( 'Edit Site' ), + 'href' => admin_url( 'site-editor.php' ), + ) + ); +} + +add_action( 'admin_bar_menu', 'gutenberg_wp_admin_bar_edit_site_menu', 41 ); diff --git a/lib/load.php b/lib/load.php index 789c9f9980e9a..0549a91c4f015 100644 --- a/lib/load.php +++ b/lib/load.php @@ -98,6 +98,7 @@ function gutenberg_is_experiment_enabled( $name ) { require __DIR__ . '/compat/wordpress-6.7/post-formats.php'; // WordPress 6.8 compat. +require __DIR__ . '/compat/wordpress-6.8/admin-bar.php'; require __DIR__ . '/compat/wordpress-6.8/preload.php'; require __DIR__ . '/compat/wordpress-6.8/blocks.php'; require __DIR__ . '/compat/wordpress-6.8/functions.php';