Skip to content

Commit

Permalink
Preload themes and plugins data
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Oct 13, 2021
1 parent 6ab7157 commit 59ee0a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Admin/OnboardingWizardSubmenuPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ protected function add_preload_rest_paths() {
'/amp/v1/options',
'/amp/v1/reader-themes',
'/amp/v1/scannable-urls',
'/wp/v2/plugins',
'/wp/v2/settings',
'/wp/v2/themes',
'/wp/v2/users/me',
];

Expand Down
2 changes: 2 additions & 0 deletions src/Admin/OptionsMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ protected function add_preload_rest_paths() {
[ 'url', 'amp_url', 'type', 'label', 'validation_errors', 'stale' ],
'/amp/v1/scannable-urls'
),
'/wp/v2/plugins',
'/wp/v2/settings',
'/wp/v2/themes',
'/wp/v2/users/me',
];

Expand Down

0 comments on commit 59ee0a2

Please sign in to comment.