Skip to content

Commit

Permalink
Add backport changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Mar 4, 2025
1 parent 0a54d7f commit 508935c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions backport-changelog/6.8/8441.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/8441

* https://github.com/WordPress/gutenberg/pull/69400
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.8/preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) {
* Please ensure that the equivalent check is kept in sync with this preload path.
*/
$rest_context = current_user_can( 'edit_theme_options' ) ? 'edit' : 'view';
$paths[] = "/wp/v2/global-styles/$global_styles_id?context=$rest_context";
$paths[] = "/wp/v2/global-styles/$global_styles_id?context=$rest_context";

// Used by getBlockPatternCategories in useBlockEditorSettings.
$paths[] = '/wp/v2/block-patterns/categories';
Expand Down

0 comments on commit 508935c

Please sign in to comment.