
WordPress
A New Era of WordPress Search: Elasticsearch in Beta Now
Pantheon now offers Elasticsearch beta for WordPress. Experience enterprise-grade search, handling scaling and uptime for your content-heavy site.
WP-CLI's search-replace command solves tricky problems with migrating WordPress databases between environments.ts
Moving databases between environments is tough. Many things can break in the process, and a single issue can sink hours of your valuable time. Migrating WordPress databases between environments is especially tricky for two reasons:
WP-CLI's search-replace command solves both of these problems for you, with its awareness of WordPress' tables, and intuitive handling of serialized data. On Pantheon, wp search-replace is an integral part of the workflow.
Let's take a look at how it works.
WP-CLI search-replace only requires two parameters: <old-string>` and <new-string>. On Pantheon, here's how it could be used to transport a database cloned from Live into Test:
wp search-replace 'production-domain.com' 'test-my-site.pantheon.io'
By default, WP-CLI will search through all tables registered to the $wpdb object. In each column of each table, it will inspect the column's rows to see if serialized data is present. If it discovers serialized data, then it iterates through all of the rows, de-serializes data as relevant, recursively performs a search and replace procedure, and updates the row in the database. When no serialized data is present, the procedure is a much simpler MySQL UPDATE statement.
On multisite, WP-CLI will default to only performing search-replace on a specified site. You can search-replace across all sites in the network with the --network` flag.
Want to inspect the results of your search-replace command without making changes to the database? Use the --dry-run flag to mock the entire operation, and see a summary of how your database would've been modified.
Last month, Pantheon generously sponsored 15 hours of my time to address some of the long-standing search-replace bugs in the backlog, and make a few substantial enhancements too.
Here are the big search-replace improvements you can expect to see in WP-CLI v0.22.0, to be released in the next few weeks:
If you'd like to check these enhancements out early, use wp cli update --nightly to install the latest nightly release.

WordPress
Pantheon now offers Elasticsearch beta for WordPress. Experience enterprise-grade search, handling scaling and uptime for your content-heavy site.

WordPress
A look into Federated and Independent Repositories and how they affect WordPress package distribution

WordPress
How Pantheon shields your WordPress sites from emerging security exploits...without even trying.