Skip to content

WP playground integration #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

kirtangajjar
Copy link
Member

Description of the Change

Add WP Playground integration

Closes #46

How to test the Change

  1. Go to https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/10up/simple-google-news-sitemap/feature/playground-integration/.github/blueprints/blueprint.json and see that you see a working environment.

Changelog Entry

Added - WP Playground Integration

Credits

Props @kirtangajjar

Checklist:

@kirtangajjar kirtangajjar changed the title Feature/playground integration WP playground integration Nov 11, 2024
@jeffpaul jeffpaul added this to the 1.2.0 milestone Nov 12, 2024
@jeffpaul jeffpaul requested a review from dkotter April 30, 2025 21:44
Comment on lines +23 to +26
"step": "importFile",
"file": {
"resource": "wordpress.org/theme-unit-test",
"type": "theme"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step doesn't work. importFile doesn't seem to be supported anymore but this doesn't point to an actual file, just a URL. If the goal here is to import some test data, this is what we do in a few other plugins:

    {
      "step": "importWxr",
      "file": {
        "resource": "url",
        "url": "https:\/\/raw.githubusercontent.com\/WordPress\/theme-test-data\/42c0fdc29d0055c276fc9fdd335a672a8133c605\/theme-preview.xml"
      }
    }

While that does work here and will import content, because the the News Sitemap only pulls in recent content, none of this imported content will show up. So either we need to create new content that has timestamps from the last couple days or just remove this step and just have the default Hello World post and Sample Page show up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add WordPress Playground integration
3 participants