diff --git a/wp-includes/vars.php b/wp-includes/vars.php index 179f55272c..e75fff2718 100644 --- a/wp-includes/vars.php +++ b/wp-includes/vars.php @@ -173,7 +173,7 @@ foreach($wpsmiliestrans as $smiley => $img) { } // Path for cookies -define('COOKIEPATH', preg_replace('|http://[^/]+|i', '', get_settings('home') . '/' ) ); +define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) ); // Some default filters add_filter('category_description', 'wptexturize');