WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Bug] Filter priority too low

[Resolved] [Bug] Filter priority too low

  • I just noticed that this issue is still not fixed in the plugin core:
    http://wordpress.org/support/topic/plugin-better-wordpress-external-links-bugfix-priority-too-low

    Would be great if it could be included in the next version.

    To fix:

    File: /includes/class-bwp-external-links.php

    Find line 98-104:

    if ('yes' == $this->options['enable_post_contents'])
    		add_filter('the_content', array($this, 'parse_links'));
    	if ('yes' == $this->options['enable_comment_text'])
    		add_filter('comment_text', array($this, 'parse_links'));
    	// @since 1.1.0
    	if ('yes' == $this->options['enable_widget_text'])
    		add_filter('widget_text', array($this, 'parse_links'));

    Replace with:

    if ('yes' == $this->options['enable_post_contents'])
    		add_filter('the_content', array($this, 'parse_links'), 10000);
    	if ('yes' == $this->options['enable_comment_text'])
    		add_filter('comment_text', array($this, 'parse_links'), 10000);
    	// @since 1.1.0
    	if ('yes' == $this->options['enable_widget_text'])
    		add_filter('widget_text', array($this, 'parse_links'), 10000);

    Hope this helps!

    http://wordpress.org/plugins/bwp-external-links/

  • The topic ‘[Resolved] [Bug] Filter priority too low’ is closed to new replies.