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..0c56ada0a2897 --- /dev/null +++ b/lib/compat/wordpress-6.8/admin-bar.php @@ -0,0 +1,38 @@ +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 371f9c54e5fc4..893d94c41d265 100644 --- a/lib/load.php +++ b/lib/load.php @@ -101,6 +101,7 @@ function gutenberg_is_experiment_enabled( $name ) { require __DIR__ . '/compat/wordpress-6.8/post.php'; require __DIR__ . '/compat/wordpress-6.8/site-editor.php'; require __DIR__ . '/compat/wordpress-6.8/class-gutenberg-rest-user-controller.php'; +require __DIR__ . '/compat/wordpress-6.8/admin-bar.php'; // Experimental features. require __DIR__ . '/experimental/block-editor-settings-mobile.php'; diff --git a/packages/block-library/src/image/block.json b/packages/block-library/src/image/block.json index 16e3121747602..26835df9e856c 100644 --- a/packages/block-library/src/image/block.json +++ b/packages/block-library/src/image/block.json @@ -4,7 +4,14 @@ "name": "core/image", "title": "Image", "category": "media", - "usesContext": [ "allowResize", "imageCrop", "fixedHeight", "postId", "postType", "queryId" ], + "usesContext": [ + "allowResize", + "imageCrop", + "fixedHeight", + "postId", + "postType", + "queryId" + ], "description": "Insert an image to make a visual statement.", "keywords": [ "img", "photo", "picture" ], "textdomain": "default", diff --git a/packages/block-library/src/post-content/block.json b/packages/block-library/src/post-content/block.json index ed9c47154b2f8..e5d455b97a8a3 100644 --- a/packages/block-library/src/post-content/block.json +++ b/packages/block-library/src/post-content/block.json @@ -69,4 +69,4 @@ }, "style": "wp-block-post-content", "editorStyle": "wp-block-post-content-editor" -} \ No newline at end of file +}