Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da63e4e

Browse filesBrowse files
author
root
committed
第七引数をfalseに修正
2 parents 8930e3c + 8f65be0 commit da63e4e
Copy full SHA for da63e4e

1 file changed

+6-6Lines changed: 6 additions & 6 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎multi-device-switcher.php‎

Copy file name to clipboardExpand all lines: multi-device-switcher.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ public function __construct() {
6666
public function switch_theme() {
6767

6868
if ( isset( $_COOKIE[ $this->cookie_name_disable_switcher ] ) ) {
69-
setcookie( $this->cookie_name_disable_switcher, null, time() - 3600, '/', '', is_ssl(), true );
69+
setcookie( $this->cookie_name_disable_switcher, null, time() - 3600, '/', '', is_ssl(), false );
7070
}
7171

7272
if ( $this->is_disable_switcher() ) {
73-
setcookie( $this->cookie_name_multi_device_switcher, null, time() - 3600, '/', '', is_ssl(), true );
74-
setcookie( $this->cookie_name_disable_switcher, 1, null, '/', '', is_ssl(), true );
73+
setcookie( $this->cookie_name_multi_device_switcher, null, time() - 3600, '/', '', is_ssl(), false );
74+
setcookie( $this->cookie_name_disable_switcher, 1, null, '/', '', is_ssl(), false );
7575
return;
7676
}
7777

@@ -112,10 +112,10 @@ public function switch_theme() {
112112
add_filter( 'template', array( $this, 'get_template' ) );
113113
add_action( 'wp_footer', array( $this, 'add_pc_switcher' ) );
114114

115-
setcookie( $this->cookie_name_multi_device_switcher, preg_replace( '/^custom_switcher_/', '', $this->device ), null, '/', '', is_ssl(), true );
115+
setcookie( $this->cookie_name_multi_device_switcher, preg_replace( '/^custom_switcher_/', '', $this->device ), null, '/', '', is_ssl(), false );
116116
}
117117
else {
118-
setcookie( $this->cookie_name_multi_device_switcher, null, time() - 3600, '/', '', is_ssl(), true );
118+
setcookie( $this->cookie_name_multi_device_switcher, null, time() - 3600, '/', '', is_ssl(), false );
119119
}
120120

121121
if ( isset( $_COOKIE[ $this->cookie_name_pc_switcher ] ) ) {
@@ -230,7 +230,7 @@ public function get_device_theme() {
230230

231231
public function session() {
232232
if ( isset( $_GET['pc-switcher'] ) ) {
233-
setcookie( $this->cookie_name_pc_switcher, $_GET['pc-switcher'] ? 1 : '', null, '/', '', is_ssl(), true );
233+
setcookie( $this->cookie_name_pc_switcher, $_GET['pc-switcher'] ? 1 : '', null, '/', '', is_ssl(), false );
234234

235235
$uri = preg_replace( '/^(.+?)(\?.*)$/', '$1', $_SERVER['REQUEST_URI'] );
236236

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.