• Hello, I’ve been able to get anspress working on my wp. However it is having conflict issues with digg digg plugin.

    In anspress_functions.php for more than a few functions, you are using apply_filters();

    EX.

    function ap_editor_content($content){
      wp_editor( apply_filters('the_content', $content), 'post_content', array('media_buttons' => false, 'quicktags' => false, 'textarea_rows' => 15, 'teeny' => true));
      remove_filter('the_content', $post->post_content);
    }

    This is causing a conflict with digg digg plugin. As apply_filters will also include code/html for the digg digg widget.
    For example, when I go to answer a question, I see this in the textbox before I type anything (it loads with this info in the textarea):

    <ul id="sharebar" style="background:#;border-color:#;">
    <li><script type="text/javascript">(function() { var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; s.type = 'text/javascript'; s.async = true; s.src = 'http://widgets.digg.com/buttons.js'; s1.parentNode.insertBefore(s, s1); })(); </script><a class="DiggThisButton DiggMedium"></a></li><li><a href="http://twitter.com/share" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://twitter.com']);" class="twitter-share-button" data-count="vertical" data-via="ThinkDevGrow">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><span class="st_facebook_vcount" displayText="Share"></span><span class="st_email" displayText="Email"></span><span class="st_sharethis" displayText="Share"></span></li></ul><ul id="sharebarx">
    <li><script type="text/javascript">(function() { var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; s.type = 'text/javascript'; s.async = true; s.src = 'http://widgets.digg.com/buttons.js'; s1.parentNode.insertBefore(s, s1); })(); </script><a class="DiggThisButton DiggCompact"></a></li><li><a href="http://twitter.com/share" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://twitter.com']);" class="twitter-share-button" data-count="horizontal" data-via="ThinkDevGrow">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><span class="st_facebook_hcount" displayText="Share"></span><span class="st_email" displayText="Email"></span><span class="st_sharethis" displayText="Share"></span></li></ul>

    So my question is, why are you using apply_filters (as removing solves my issue)? I’m not a WP pro, I only work on it from time to time.

    Thanks

    https://wordpress.org/plugins/anspress/

  • The topic ‘anspress_functions.php plugin conflicts’ is closed to new replies.