You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Page List shows "Cannot retrieve Pages" for Editors with a published Privacy Policy page #86019
With a published Privacy Policy page, the Page List block shows “Page List: Cannot retrieve Pages.” for an Editor in both post and page editors. Other pages, including Sample Page, are published.
Steps to reproduce
Publish a page and set it as the Privacy Policy page in Settings → Privacy.
Add a user with the Editor role.
Sign in as that Editor.
Create a new page or post.
In the editor, insert a Page List block.
The error appears.
Expected: The block lists the published pages.
Actual: It shows “Page List: Cannot retrieve Pages.”
Environment
WordPress 7.1.4, PHP 8.3, Twenty Twenty-Five, no Gutenberg plugin. Also reproduced in WordPress Playground with the same setup.
Additional finding
In Playground, publishing the Privacy Policy page changed the Editor’s /wp/v2/pages?context=edit response from 5 returned / 5 total to 5 returned / 6 total. Returning it to draft restored the block. The Editor cannot edit that page, but can view it. The Page List block uses the edit context; using the view context may resolve this.
AI disclosure
An AI assistant drafted and submitted this issue after human and AI review. The reporter verified the behavior, and the assistant reproduced it in Playground.
changed the title [-]Page List editor omits the published Privacy Policy page for Editors[/-][+]Page List block shows an error for Editors when a Privacy Policy page is configured[/+]on Oct 30, 2026
changed the title [-]Page List block shows an error for Editors when a Privacy Policy page is configured[/-][+]Page List shows "Cannot retrieve Pages" for Editors with a published Privacy Policy page[/+]on Oct 30, 2026
I was able to reproduce this with an Editor account and a published page assigned as the Privacy Policy page.
Page List previously used context: 'view', added in #42559 to allow users with lower permissions to preview the block. That explicit context was removed during the query refactor in #46930, which appears to have unintentionally restored core-data’s default edit context.
Restoring context: 'view' looks appropriate here: the block lists published pages and only needs fields available in view context. This would allow it to include the Privacy Policy page even when the current user cannot edit that page.
Activity
[-]Page List editor omits the published Privacy Policy page for Editors[/-][+]Page List block shows an error for Editors when a Privacy Policy page is configured[/+][-]Page List block shows an error for Editors when a Privacy Policy page is configured[/-][+]Page List shows "Cannot retrieve Pages" for Editors with a published Privacy Policy page[/+]elphizu commentedon Oct 30, 2026
I was able to reproduce this with an Editor account and a published page assigned as the Privacy Policy page.
Page List previously used context: 'view', added in #42559 to allow users with lower permissions to preview the block. That explicit context was removed during the query refactor in #46930, which appears to have unintentionally restored core-data’s default edit context.
Restoring context: 'view' looks appropriate here: the block lists published pages and only needs fields available in view context. This would allow it to include the Privacy Policy page even when the current user cannot edit that page.