@@ -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