External Links - Version 5.5

Version Description

  • Use wp_print_footer_scripts hook instead of wp_footer as some themes fail to call wp_footer();
  • Use own custom version of the anchor_utils class
  • Content, excerpt and comment filters no longer called when Apply Globally is selected. Improves performance.
Download this release

Release Info

Developer Mike_Koepke
Plugin Icon wp plugin External Links
Version 5.5
Comparing to
See all releases

Code changes from version 5.5.1 to 5.5

external-links-anchor-utils.php CHANGED
@@ -52,8 +52,10 @@ class external_links_anchor_utils {
52
  function ob_start() {
53
  echo '<!-- external-links ' . 'ob_start' . ' -->' . "\n";
54
 
55
- ob_start(array($this, 'ob_filter'));
56
- add_action('wp_print_footer_scripts', array($this, 'ob_flush'), 100000);
 
 
57
  } # ob_start()
58
 
59
  /**
@@ -134,6 +136,8 @@ class external_links_anchor_utils {
134
 
135
  function filter($text) {
136
  $text = '<!-- external-links ' . current_filter() . ' -->' . "\n" . $text;
 
 
137
 
138
  global $escape_anchor_filter;
139
  $escape_anchor_filter = array();
52
  function ob_start() {
53
  echo '<!-- external-links ' . 'ob_start' . ' -->' . "\n";
54
 
55
+ if ( has_filter('ob_filter_anchor') ) {
56
+ ob_start(array($this, 'ob_filter'));
57
+ add_action('wp_print_footer_scripts', array($this, 'ob_flush'), 100000);
58
+ }
59
  } # ob_start()
60
 
61
  /**
136
 
137
  function filter($text) {
138
  $text = '<!-- external-links ' . current_filter() . ' -->' . "\n" . $text;
139
+ if ( !has_filter('filter_anchor') )
140
+ return $text;
141
 
142
  global $escape_anchor_filter;
143
  $escape_anchor_filter = array();
readme.txt CHANGED
@@ -36,10 +36,6 @@ If you require more dedicated assistance, consider using [Semiologic Pro](http:/
36
 
37
  == Change Log ==
38
 
39
- = 5.5.1 =
40
-
41
- - Additional tweak to global callback processing
42
-
43
  = 5.5 =
44
 
45
  - Use wp_print_footer_scripts hook instead of wp_footer as some themes fail to call wp_footer();
36
 
37
  == Change Log ==
38
 
 
 
 
 
39
  = 5.5 =
40
 
41
  - Use wp_print_footer_scripts hook instead of wp_footer as some themes fail to call wp_footer();
sem-external-links.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: External Links
4
  Plugin URI: http://www.semiologic.com/software/external-links/
5
  Description: Marks outbound links as such, with various effects that are configurable under <a href="options-general.php?page=external-links">Settings / External Links</a>.
6
- Version: 5.5.1
7
  Author: Denis de Bernardy & Mike Koepke
8
  Author URI: http://www.getsemiologic.com
9
  Text Domain: external-links
3
  Plugin Name: External Links
4
  Plugin URI: http://www.semiologic.com/software/external-links/
5
  Description: Marks outbound links as such, with various effects that are configurable under <a href="options-general.php?page=external-links">Settings / External Links</a>.
6
+ Version: 5.5
7
  Author: Denis de Bernardy & Mike Koepke
8
  Author URI: http://www.getsemiologic.com
9
  Text Domain: external-links