-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pantheon-wp-coding-standards (#400)
* add our coding standards * use php 8 for linting * phpcbf fixes * ignore tests for linting * adjust and fix sniffs for object-cache.php drop-in * check if all the server global values * fix sniffs for WP CLI commands * do a composer update before install for 7.4 * make the $cache property public * fix composer update & install in both 7.4 tests * set $cache_hits property to true * set redis_calls property to public * set is_redis_connected property to public * revert wp_redis_ignore_global_groups const value * make all the private and protected properties public * use short arrays again * remove parenthesis when we instantiate the class * set object-cache back to what it was * remove extra isset checks * add the issets back to the database param * add original object-cache file back * use the version of the upstream tests that maybe have the issues fixed * update the upstream tests * Revert "add original object-cache file back" This reverts commit 1fc2b66. * restore cli.php and wp-redis.php back to what they were * remove the upstream behat tests these are failing because they're old and need to be updated. they have nothing to do with the plugin itself * add some echos * wordpress isn't actually getting installed break the brackets * one line, brackets and remove the & * guess we can't do this on one line * don't need that semicolon i don't think * okay fine, put it back the way it was * enable redis before flushing cache * enable redis on the entire site (not env) and add a wait command * enable redis early so we aren't potentially waiting for other things later * don't need to wait * don't need to enable because it's already enabled * don't need an isset, we already know it's set * use strip all tags instead of sanitize_text_field * don't activate redis twice and flush cache after wp-redis is active * re-add composer.lock * re-add composer update for 7.4
- Loading branch information
1 parent
8361a0a
commit 1db2b1c
Showing
10 changed files
with
813 additions
and
463 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,9 +86,10 @@ terminus build:workflow:wait $TERMINUS_SITE.$TERMINUS_ENV | |
### | ||
# Set up WordPress, theme, and plugins for the test run | ||
### | ||
echo "Installing WordPress..." | ||
# Silence output so as not to show the password. | ||
{ | ||
terminus wp $SITE_ENV -- core install --title=$TERMINUS_ENV-$TERMINUS_SITE --url=$PANTHEON_SITE_URL --admin_user=$WORDPRESS_ADMIN_USERNAME [email protected] --admin_password=$WORDPRESS_ADMIN_PASSWORD | ||
terminus wp $SITE_ENV -- core install --title=$TERMINUS_ENV-$TERMINUS_SITE --url=$PANTHEON_SITE_URL --admin_user=$WORDPRESS_ADMIN_USERNAME [email protected] --admin_password=$WORDPRESS_ADMIN_PASSWORD | ||
} &> /dev/null | ||
|
||
echo "Flush cache and setup environment..." | ||
|
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
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
Oops, something went wrong.