OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18b1b22
)
define COOKIEHASH to get rid of DB warning
author
scribu
<mail@scribu.net>
Wed, 17 Jul 2013 01:08:06 +0000
(
04:08
+0300)
committer
scribu
<mail@scribu.net>
Wed, 17 Jul 2013 01:08:10 +0000
(
04:08
+0300)
That's because wp_cookie_constants() goes looking for siteurl in the
not-yet-existing wp_sitemeta table.
php/WP_CLI/Runner.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/Runner.php
b/php/WP_CLI/Runner.php
index
dc18ebf
..
47832b5
100644
(file)
--- 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'] ) );
+ }
}
}