Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-playground-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
'',
`<a href="${playgroundUrl}"><img src="https://raw.githubusercontent.com/${context.repo.owner}/${context.repo.repo}/refs/heads/${context.payload.pull_request.head.ref}/.github/playground-preview-button.svg" alt="Preview in WordPress Playground" width="224"></a>`,
'',
'> ⚠️ The embedded eXeLearning editor is not included in this preview. You can install it from **Settings > eXeLearning** using the "Download & Install Editor" button. All other plugin features (ELP upload, shortcode, Gutenberg block, preview) work normally.',
'> ℹ️ The eXeLearning editor is fetched from the shared release and unpacked into the plugin when the playground boots, so the first load may take a few extra seconds. ELP upload, shortcode, Gutenberg block and preview work normally.',
].join('\n');

// Find existing comment
Expand Down
12 changes: 12 additions & 0 deletions blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
"activate": true
}
},
{
"step": "writeFile",
"path": "/tmp/exe-editor.zip",
"data": {
"resource": "url",
"url": "https://github-proxy.exelearning.dev/?repo=exelearning/exelearning&release=v4.0.0&asset=exelearning-static-v4.0.0.zip"
}
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; $dirs = glob(WP_PLUGIN_DIR . '/wp-exelearning*', GLOB_ONLYDIR); if ($dirs) { $dest = rtrim($dirs[0], '/') . '/dist'; if (!is_dir($dest)) { wp_mkdir_p($dest); } $zip = new ZipArchive; if ($zip->open('/tmp/exe-editor.zip') === TRUE) { $zip->extractTo($dest); $zip->close(); } @unlink('/tmp/exe-editor.zip'); } ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; global $wp_rewrite; $wp_rewrite->set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(true); ?>"
Expand Down