WordPress.org

Forums

Better WordPress External Links
[resolved] [Bug] Filter priority too low (1 post)

  1. jrf
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better WordPress External Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.