Use sitecookiepath constant for Multi-Site users

This commit is contained in:
Jay Wood
2014-11-09 17:42:24 -05:00
parent 2affd17b8b
commit 3c0836a010

View File

@ -49,14 +49,9 @@ class CWV3 {
$p_ID = ( is_front_page() ) ? -1 : ( is_attachment() ? $post->post_parent : ( is_archive() || is_search() ) ? -2 : $post->ID ); $p_ID = ( is_front_page() ) ? -1 : ( is_attachment() ? $post->post_parent : ( is_archive() || is_search() ) ? -2 : $post->ID );
$d = get_option( 'cwv3_denial' ); $d = get_option( 'cwv3_denial' );
wp_localize_script( 'cwv3_js', 'cwv3_params', array( wp_localize_script( 'cwv3_js', 'cwv3_params', array(
'action' => 'cwv3_ajax', 'id' => $p_ID,
'nonce' => wp_create_nonce( 'cwv3_ajax_'.$p_ID ), 'opacity' => get_option( 'cwv3_bg_opacity', 0.85 ),
'admin_url' => admin_url( 'admin-ajax.php' ), 'cookie_path' => SITECOOKIEPATH,
'id' => $p_ID,
'sd' => ( $this->check_data() == false || ( $this->check_data() == 3 && ! empty( $d ) ) ) ? true : false,
'enter' => ! empty( $elink ) ? $elink : '#',
'exit' => ! empty( $exlink ) ? $exlink : 'http://google.com',
'opacity' => get_option( 'cwv3_bg_opacity', 0.85 )
) ); ) );
} }