File tree 1 file changed +12
-32
lines changed
1 file changed +12
-32
lines changed Original file line number Diff line number Diff line change 10
10
"features" : {
11
11
"networking" : true
12
12
},
13
+ "plugins" :[" friends" ," activitypub" ],
14
+ "siteOptions" : {
15
+ "permalink_structure" : " /%postname%/"
16
+ },
13
17
"steps" : [
14
18
{
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
+ }
37
27
}
38
28
},
39
29
{
40
30
"step" : " runPHP" ,
41
31
"code" : " <?php require_once 'wordpress/wp-load.php';\n if ( class_exists('Friends\\ Import')) {\n Friends\\ 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\u0144 ski\\\" title=\\\" Adam Zieli\u0144 ski\\\" 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
- }
52
32
}
53
33
]
54
34
}
You can’t perform that action at this time.
0 commit comments