Skip to content

Add wp site meta sub-command#159

Merged
schlessera merged 41 commits intowp-cli:masterfrom
spacedmonkey:master
May 28, 2018
Merged

Add wp site meta sub-command#159
schlessera merged 41 commits intowp-cli:masterfrom
spacedmonkey:master

Conversation

@spacedmonkey
Copy link
Copy Markdown
Contributor

Add the wp site meta sub-command, with tests.

This one is going to be hard to test and might be merge after 5.0.0 is released.

fixes #158

WP_CLI::error( 'This is not a multisite installation.' );
}
if ( \WP_CLI\Utils\wp_version_compare( '5.0', '<' ) ) {
WP_CLI::error( "Requires WordPress 5.0 or greater." );
Copy link
Copy Markdown
Member

@schlessera schlessera Mar 25, 2018

Choose a reason for hiding this comment

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

You'd still need to error out if the WordPress version is not the correct one, i.e. 5.0.

However, you should replace the \WP_CLI\Utils\wp_version_compare( '5.0', '<' ) with the function_exists('is_site_meta_supported') check.

@spacedmonkey
Copy link
Copy Markdown
Contributor Author

Now that #174 is merged, I have updated the PR, with overrides that use the site_meta functions.

@schlessera Can you take a look at this PR again.

Quick note, I have rebased my branch, so I could make this change, it has a lot of commit from master in this branch. Sorry about this.

@schlessera schlessera merged commit bf540e2 into wp-cli:master May 28, 2018
@schlessera schlessera added this to the 1.3.0 milestone May 28, 2018
@schlessera
Copy link
Copy Markdown
Member

Thanks for the PR, @spacedmonkey !

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.

Add wp site meta subcommand to manage blogmeta

4 participants