@@ -3730,23 +3730,26 @@ private function shortcode_membership_init($image = "", $frame = "", $iwidth = "
3730
3730
// not available activated bitcoin/altcoin
3731
3731
if (!$ this ->payments )
3732
3732
{
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
+ }
3750
3753
3751
3754
$ html = GOURL_LOCK_START .$ this ->display_error_nokeys ().GOURL_LOCK_END ;
3752
3755
@@ -8653,5 +8656,5 @@ function gourl_altcoin_btc_price ($altcoin, $interval = 1)
8653
8656
}
8654
8657
8655
8658
8656
- return 0 ;
8659
+ return 0 ;
8657
8660
}
0 commit comments