Skip to content

Commit 49a75b7

Browse files
authored
Update-friends-cors (#112)
Fixes #93 use shorthand for siteOptions, plugins
1 parent 3a87e29 commit 49a75b7

File tree

1 file changed

+12
-32
lines changed

1 file changed

+12
-32
lines changed

blueprints/friends-cors/blueprint.json

+12-32
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,25 @@
1010
"features": {
1111
"networking": true
1212
},
13+
"plugins":["friends","activitypub"],
14+
"siteOptions": {
15+
"permalink_structure": "/%postname%/"
16+
},
1317
"steps": [
1418
{
15-
"step": "mkdir",
16-
"path": "wordpress/wp-content/mu-plugins"
17-
},
18-
{
19-
"step": "writeFile",
20-
"path": "wordpress/wp-content/mu-plugins/addFilter-0.php",
21-
"data": "<?php add_action( 'requests-requests.before_request', function( &$url ) {\n$url = 'https://playground.wordpress.net/cors-proxy.php?' . $url;\n} );"
22-
},
23-
{
24-
"step": "setSiteOptions",
25-
"options": {
26-
"permalink_structure": "/%postname%/"
27-
}
28-
},
29-
{
30-
"step": "installPlugin",
31-
"pluginData": {
32-
"resource": "wordpress.org/plugins",
33-
"slug": "friends"
34-
},
35-
"options": {
36-
"activate": true
19+
"step": "writeFiles",
20+
"writeToPath": "wordpress/wp-content/mu-plugins",
21+
"filesTree": {
22+
"resource": "literal:directory",
23+
"name": "mu-plugins",
24+
"files": {
25+
"addFilter-0.php": "<?php add_action( 'requests-requests.before_request', function( &$url ) {\n$url = 'https://playground.wordpress.net/cors-proxy.php?' . $url;\n} );"
26+
}
3727
}
3828
},
3929
{
4030
"step": "runPHP",
4131
"code": "<?php require_once 'wordpress/wp-load.php';\nif ( class_exists('Friends\\Import')) {\nFriends\\Import::opml(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><opml version=\\\"2.0\\\">\n<head>\n<title>Subscriptions</title>\n</head>\n<body>\n<outline text=\\\"Subscriptions\\\" title=\\\"Subscriptions\\\">\n<outline type=\\\"rss\\\" text=\\\"Alex Kirk\\\" title=\\\"Alex Kirk\\\" xmlUrl=\\\"https://alex.kirk.at/feed/\\\" htmlUrl=\\\"https://alex.kirk.at/feed/\\\" />\n<outline type=\\\"rss\\\" text=\\\"Adam Zieli\u0144ski\\\" title=\\\"Adam Zieli\u0144ski\\\" xmlUrl=\\\"https://adamadam.blog/feed/\\\" htmlUrl=\\\"https://adamadam.blog/feed/\\\" />\n</outline>\n</body>\n</opml>\");\n}"
42-
},
43-
{
44-
"step": "installPlugin",
45-
"pluginData": {
46-
"resource": "wordpress.org/plugins",
47-
"slug": "activitypub"
48-
},
49-
"options": {
50-
"activate": true
51-
}
5232
}
5333
]
5434
}

0 commit comments

Comments
 (0)