Skip to content

Audit multisite behavior before core proposal #137

Description

@josephfusco

wp_can_access_presence_room() branches on user_can() for both post rooms and admin/online (includes/functions.php:199-214), and nothing exercises that across a site boundary yet. #212 added the first switch_to_blog() calls in tests/, in test-table-creation.php, which is the pattern to follow here.

  • A user with edit_posts on site A but not site B is denied admin/online on site B.
  • Presence entries written on site A aren't visible reading back from site B, confirming site-scoping rather than inferring it from the table prefix.

Split either into its own issue if it grows past a test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Area] DatabaseIssues for the wp_presence table and cron cleanup[Type] EnhancementA suggestion for improvement of an existing feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions