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

Ticket/15 required plugin header #20

Merged
merged 5 commits into from
May 1, 2019

Conversation

phatsk
Copy link
Contributor

@phatsk phatsk commented Dec 14, 2018

This address #15

  • Plugins with Required: true or similar (non-empty value) will be automatically added to the list of required plugins.
  • Needs to be tested at the network level.
  • The comment text is filterable, so for instance it could be a header like
/**
 * Plugin Name: Blah
 * WDS-Required: True
 */

@phatsk phatsk self-assigned this Dec 14, 2018
@phatsk phatsk requested a review from aubreypwd December 14, 2018 06:05
@@ -108,22 +108,24 @@ public static function init() {
private function __construct() {

// Only if we are not incompatible with something.
if ( ! $this->incompatible() ) {
if ( $this->incompatible() ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reversed the logic here while I was adding my filter.

phatsk and others added 2 commits December 14, 2018 01:07
Adds logic so that the value of the header needs to be truthy-ish.
@aubreypwd aubreypwd changed the base branch from master to release-1.2.0 May 1, 2019 18:25
@aubreypwd aubreypwd added this to the 1.2.0 milestone May 1, 2019
@aubreypwd aubreypwd merged commit 48fb60a into release-1.2.0 May 1, 2019
@aubreypwd aubreypwd deleted the ticket/15-required-plugin-header branch May 1, 2019 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants