Skip to content

Playground demo can't save a second update to a post #39

Description

@josephfusco

The "Open in WordPress Playground" badge in the README boots a demo that breaks as soon as you edit a post twice.

blueprint.json's runPHP step creates wp_collaboration with UNIQUE KEY room_type (room(191), type). lib/install.php has no such key (it was dropped in d550c89), and the provider appends a row per update at lib/class-sync-storage-provider.php:172, so the second write for a post hits a duplicate-key error.

Three smaller things in the same file:

  • The plugin installs from archive/main.zip, which unpacks to sync-storage-main/, but the verify step activates sync-storage/sync-storage.php. The resulting WP_Error goes unchecked and it still prints "All plugins activated".
  • That same step calls is_plugin_active() without require_once ABSPATH . 'wp-admin/includes/plugin.php'.
  • It installs Gutenberg from the plugin directory, while sync-storage.php:52 tells users trunk is required and build-gutenberg.sh builds trunk for CI. Worth confirming the released build applies __unstable_wp_sync_storage at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions