From e986f4ee626e8d315fef8ad210e837152b700c12 Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 17 Jul 2013 04:08:06 +0300 Subject: [PATCH] define COOKIEHASH to get rid of DB warning That's because wp_cookie_constants() goes looking for siteurl in the not-yet-existing wp_sitemeta table. --- php/WP_CLI/Runner.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php/WP_CLI/Runner.php b/php/WP_CLI/Runner.php index dc18ebf4..47832b51 100644 --- a/php/WP_CLI/Runner.php +++ b/php/WP_CLI/Runner.php @@ -404,6 +404,10 @@ class Runner { if ( 'multisite-install' == $this->arguments[1] ) { // need to fake some globals to skip the checks in wp-inclues/ms-settings.php self::fake_current_site_blog( $url_parts ); + + if ( !defined( 'COOKIEHASH' ) ) { + define( 'COOKIEHASH', md5( $url_parts['host'] ) ); + } } } -- 2.11.0