Skip to content
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

Update friends-cors to use writeFiles steps #93

Closed
Tracked by #92
bph opened this issue Jan 29, 2025 · 0 comments · Fixed by #112
Closed
Tracked by #92

Update friends-cors to use writeFiles steps #93

bph opened this issue Jan 29, 2025 · 0 comments · Fixed by #112
Assignees

Comments

@bph
Copy link
Collaborator

bph commented Jan 29, 2025

current two steps

{
			"step": "mkdir",
			"path": "wordpress/wp-content/mu-plugins"
		},
		{
			"step": "writeFile",
			"path": "wordpress/wp-content/mu-plugins/addFilter-0.php",
			"data": "<?php add_action( 'requests-requests.before_request', function( &$url ) {\n$url = 'https://playground.wordpress.net/cors-proxy.php?' . $url;\n} );"
		},

Become one step

{
  "step": "installPlugin",
  "pluginData": {
    "resource": "literal:directory",
    "name": "addFilter",
    "files": {
      "addFilter-0.php": "<?php add_action( 'requests-requests.before_request', function( &$url ) {\n$url = 'https://playground.wordpress.net/cors-proxy.php?' . $url;\n} );"
    }
  }
}

Also, while working on it let's use the plugins shorthand for the plugins installation of the activityPub and 'friends':

"plugins": ["activitypub", "friends"]

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

Successfully merging a pull request may close this issue.

1 participant