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

Add WordPress plugin comment header #46

Merged
merged 2 commits into from
Jul 29, 2017

Conversation

onnimonni
Copy link
Contributor

The readme says that in order to use this plugin I need to add extra mu-plugins/cavalcade.php.

I usually have so many mu-plugins that this practice gets really hard to maintain and normally I don't add extra includes for each mu-plugin but instead I use bedrock-autoloader.php.

This can load all plugins from subfolders inside mu-plugins folder. But the problem here is that it doesn't work if the plugin in subfolder doesn't have correct comment headers in the start of the file.

This pull request fixes this problem and allows installation into subfolder without extra steps.

More info: https://roots.io/bedrock/docs/mu-plugins-autoloader/

Copy link
Member

@rmccue rmccue left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Happy to add this, pending a few changes.

plugin.php Outdated
* Cavalcade!
* Plugin Name: Cavalcade
* Plugin URI: https://github.com/humanmade/Cavalcade
* Description: Scalable job system, designed as a drop-in replacement for wp_cron
Copy link
Member

Choose a reason for hiding this comment

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

Should copy from the existing description:

A better wp-cron. Horizontally scalable, works perfectly with multisite.

plugin.php Outdated
* Plugin Name: Cavalcade
* Plugin URI: https://github.com/humanmade/Cavalcade
* Description: Scalable job system, designed as a drop-in replacement for wp_cron
* Version: 0.1
Copy link
Member

Choose a reason for hiding this comment

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

Unless it's required, I'd rather leave off the version until we start versioning Cavalcade.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll check if it works even without the version. I'll use dev-master if it's mandatory.

@onnimonni
Copy link
Contributor Author

Yes it worked just fine without version:
screen shot 2017-07-29 at 2 18 29 pm

Copy link
Member

@rmccue rmccue left a comment

Choose a reason for hiding this comment

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

:bowtie:

@rmccue rmccue merged commit 86320f1 into humanmade:master Jul 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants