-
-
Save jurajk/16af0c8331d9213269517450dbccfd4e to your computer and use it in GitHub Desktop.
Creating a whole new Theme Review environmet in 1 minute using wp-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp db reset --yes | |
wp core install --url=http://theme-review.loc --title="This is a really long long title to check if this theme design doesn't break with the long site title" --admin_user=admin --admin_password=admin --admin_email=example@example.com | |
wp core update | |
wp plugin install theme-check debug-bar log-deprecated-notices monster-widget wordpress-importer show-current-template customizer-theme-resizer --activate | |
wp plugin install wordpress-beta-tester debogger jetpack | |
wp plugin update --all | |
wp option update blogdescription "I'm in the theme review process and this is a very very long tagline to see if this long tagline text string in WordPress doesn't break the design of the theme header and else." | |
wp option update posts_per_page 5 | |
wp option update thread_comments 1 | |
wp option update thread_comments_depth 3 | |
wp option update page_comments 1 | |
wp option update comments_per_page 5 | |
wp option update large_size_w '' | |
wp option update large_size_h '' | |
curl -O https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml | |
wp import ./theme-unit-test-data.xml --authors=create | |
rm theme-unit-test-data.xml | |
wp theme install $1 --activate | |
wp media regenerate --yes | |
wp rewrite structure '/%year%/%monthnum%/%postname%' --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment