Skip to content
This repository was archived by the owner on Sep 18, 2026. It is now read-only.
This repository was archived by the owner on Sep 18, 2026. It is now read-only.

SHOW TABLES LIKE in sync_storage_upgrade_to_2() doesn't escape wildcard characters in the table prefix #118

Closed

Description

@josephfusco

The table-existence check passes $wpdb->collaboration straight into a LIKE pattern without esc_like(), so an underscore in the site's table prefix is interpreted as a SQL wildcard instead of a literal character — presence-api's equivalent wp_presence_table_exists() already escapes this correctly, making sync-storage the outlier — Copilot.

Activity

  1. added
    [Type] BugAn existing feature is broken
    [Area] DatabaseIssues for the wp_collaboration table and schema
    on Sep 5, 2026
  2. self-assigned this
    on Sep 5, 2026
  3. josephfusco commented on Sep 5, 2026

    @josephfusco
    CollaboratorAuthor

    Closing — filed too granular, not tracking individually.

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

Metadata

Metadata

Assignees

Labels

[Area] DatabaseIssues for the wp_collaboration table and schema[Type] BugAn existing feature is broken

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions