From 5be37759f5a755bc9e2f8bf1dc683bf6e2282a0c Mon Sep 17 00:00:00 2001 From: Linnea Huxford <7308162+mslinnea@users.noreply.github.com> Date: Fri, 10 May 2024 13:23:53 -0700 Subject: [PATCH] Load new feature and update documentation --- CHANGELOG.md | 2 ++ README.md | 4 ++++ src/alley/wp/alleyvate/load.php | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00c855b..131e086 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ This library adheres to [Semantic Versioning](https://semver.org/) and [Keep a C * `disable_pantheon_constant_overrides`: Added a feature to disable forcing use of `WP_SITEURL` and `WP_HOME` on Pantheon environments. * `force_two_factor_authentication`: Added a feature to force Two Factor Authentication for users with `edit_posts` permissions. * `disable_deep_pagination`: Added a feature to restrict pagination to at most 100 pages, by default. This includes a filter `alleyvate_deep_pagination_max_pages` to override this limit, as well as a new `WP_Query` argument to override the limit: `__dangerously_set_max_pages`. +* `disable_block_editor_rest_api_preload_paths` Added a feature to disable preloading Synced Patterns (Reusable + Blocks) on the block edit screen to improve performance on sites with many patterns. ## 3.0.1 diff --git a/README.md b/README.md index 7633941..8b7da4d 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,10 @@ WordPress core ["doesn't consider usernames or user IDs to be private or secure Our clients tend to not want information about the registered users on their sites to be discoverable; such lists can even disclose Alley's relationship with a client. +### `disable_block_editor_rest_api_preload_paths` + +This feature disables preloading Synced Patterns (Reusable Blocks) on the block edit screen to improve performance on sites with many patterns. + ## About ### License diff --git a/src/alley/wp/alleyvate/load.php b/src/alley/wp/alleyvate/load.php index 548b5ab..6cdb6ac 100644 --- a/src/alley/wp/alleyvate/load.php +++ b/src/alley/wp/alleyvate/load.php @@ -97,6 +97,10 @@ function load(): void { 'disable_deep_pagination', new Features\Disable_Deep_Pagination(), ), + new Feature( + 'disable_block_editor_rest_api_preload_paths', + new Features\Disable_Block_Editor_Rest_Api_Preload_Paths(), + ), ); $plugin->boot();