Skip to content

Commit 865c90e

Browse files
committed
update
1 parent 47e2915 commit 865c90e

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

gourl.php

+21-18
Original file line numberDiff line numberDiff line change
@@ -3730,23 +3730,26 @@ private function shortcode_membership_init($image = "", $frame = "", $iwidth = "
37303730
// not available activated bitcoin/altcoin
37313731
if (!$this->payments)
37323732
{
3733-
add_filter('the_content', 'gourl_lock_filter', 11111);
3734-
add_filter('the_content_rss', 'gourl_lock_filter', 11111);
3735-
add_filter('the_content_feed', 'gourl_lock_filter', 11111);
3736-
add_filter("wp_title", 'gourl_hide_headtitle_unlogged', 11111);
3737-
add_filter("wp_title_rss", 'gourl_hide_headtitle_unlogged', 11111);
3738-
add_filter('the_title', 'gourl_hide_all_titles', 11111);
3739-
add_filter('the_title_rss', 'gourl_hide_all_titles', 11111);
3740-
add_filter('get_comment_author_link', 'gourl_return_false', 11111);
3741-
add_filter('comment_text', 'gourl_lock_comments', 11111);
3742-
add_filter('post_comments_link', 'gourl_return_false', 1);
3743-
add_filter('comment_reply_link', 'gourl_return_false', 1);
3744-
add_filter('comments_open', 'gourl_return_false', 1);
3745-
add_action('do_feed', 'gourl_disable_feed', 1);
3746-
add_action('do_feed_rdf', 'gourl_disable_feed', 1);
3747-
add_action('do_feed_rss', 'gourl_disable_feed', 1);
3748-
add_action('do_feed_rss2', 'gourl_disable_feed', 1);
3749-
add_action('do_feed_atom', 'gourl_disable_feed', 1);
3733+
if (!$preview_mode)
3734+
{
3735+
add_filter('the_content', 'gourl_lock_filter', 11111);
3736+
add_filter('the_content_rss', 'gourl_lock_filter', 11111);
3737+
add_filter('the_content_feed', 'gourl_lock_filter', 11111);
3738+
add_filter("wp_title", 'gourl_hide_headtitle_unlogged', 11111);
3739+
add_filter("wp_title_rss", 'gourl_hide_headtitle_unlogged', 11111);
3740+
add_filter('the_title', 'gourl_hide_all_titles', 11111);
3741+
add_filter('the_title_rss', 'gourl_hide_all_titles', 11111);
3742+
add_filter('get_comment_author_link', 'gourl_return_false', 11111);
3743+
add_filter('comment_text', 'gourl_lock_comments', 11111);
3744+
add_filter('post_comments_link', 'gourl_return_false', 1);
3745+
add_filter('comment_reply_link', 'gourl_return_false', 1);
3746+
add_filter('comments_open', 'gourl_return_false', 1);
3747+
add_action('do_feed', 'gourl_disable_feed', 1);
3748+
add_action('do_feed_rdf', 'gourl_disable_feed', 1);
3749+
add_action('do_feed_rss', 'gourl_disable_feed', 1);
3750+
add_action('do_feed_rss2', 'gourl_disable_feed', 1);
3751+
add_action('do_feed_atom', 'gourl_disable_feed', 1);
3752+
}
37503753

37513754
$html = GOURL_LOCK_START.$this->display_error_nokeys().GOURL_LOCK_END;
37523755

@@ -8653,5 +8656,5 @@ function gourl_altcoin_btc_price ($altcoin, $interval = 1)
86538656
}
86548657

86558658

8656-
return 0;
8659+
return 0;
86578660
}

0 commit comments

Comments
 (0)