Skip to content

Page List shows "Cannot retrieve Pages" for Editors with a published Privacy Policy page #86019

Open

Description

@hiroshisatoy

Description

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

  1. Publish a page and set it as the Privacy Policy page in Settings → Privacy.
  2. Add a user with the Editor role.
  3. Sign in as that Editor.
  4. Create a new page or post.
  5. In the editor, insert a Page List block.
  6. 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.

Activity

  1. 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
  2. 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
  3. elphizu commented on Oct 30, 2026

    @elphizu

    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.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions