Page Links To - Version 2.11.1

Version Description

  • Restore PHP 5.3 compatibility, broken in 2.11.0
Download this release

Release Info

Developer markjaquith
Plugin Icon wp plugin Page Links To
Version 2.11.1
Comparing to
See all releases

Code changes from version 2.11.0 to 2.11.1

Files changed (2) hide show
  1. page-links-to.php +4 -4
  2. readme.txt +4 -1
page-links-to.php CHANGED
@@ -7,7 +7,7 @@
7
  * Plugin Name: Page Links To
8
  * Plugin URI: http://txfx.net/wordpress-plugins/page-links-to/
9
  * Description: Allows you to point WordPress pages or posts to a URL of your choosing. Good for setting up navigational links to non-WP sections of your site or to off-site resources.
10
- * Version: 2.11.0
11
  * Author: Mark Jaquith
12
  * Author URI: https://coveredweb.com/
13
  * Text Domain: page-links-to
@@ -52,7 +52,7 @@ class CWS_PageLinksTo {
52
  const MESSAGE_ID = 3;
53
  const SURVEY_URL = 'https://goo.gl/forms/8sTKH0LjPCCqBlrG2';
54
  const FILE = __FILE__;
55
- const CSS_JS_VERSION = '2.11.0';
56
 
57
  /**
58
  * Whether to replace WP links with their specified URLs.
@@ -100,7 +100,7 @@ class CWS_PageLinksTo {
100
  }
101
  }
102
 
103
- return add_action( $hook, [ $this, $method ], $priority, 999 );
104
  }
105
 
106
  /**
@@ -110,7 +110,7 @@ class CWS_PageLinksTo {
110
  * @return string The sanitized method name.
111
  */
112
  private static function sanitize_method( $method ) {
113
- return str_replace( [ '.', '-' ], [ '_DOT_', '_DASH_' ], $method );
114
  }
115
 
116
  /**
7
  * Plugin Name: Page Links To
8
  * Plugin URI: http://txfx.net/wordpress-plugins/page-links-to/
9
  * Description: Allows you to point WordPress pages or posts to a URL of your choosing. Good for setting up navigational links to non-WP sections of your site or to off-site resources.
10
+ * Version: 2.11.1
11
  * Author: Mark Jaquith
12
  * Author URI: https://coveredweb.com/
13
  * Text Domain: page-links-to
52
  const MESSAGE_ID = 3;
53
  const SURVEY_URL = 'https://goo.gl/forms/8sTKH0LjPCCqBlrG2';
54
  const FILE = __FILE__;
55
+ const CSS_JS_VERSION = '2.11.1';
56
 
57
  /**
58
  * Whether to replace WP links with their specified URLs.
100
  }
101
  }
102
 
103
+ return add_action( $hook, array( $this, $method ), $priority, 999 );
104
  }
105
 
106
  /**
110
  * @return string The sanitized method name.
111
  */
112
  private static function sanitize_method( $method ) {
113
+ return str_replace( array( '.', '-' ), array( '_DOT_', '_DASH_' ), $method );
114
  }
115
 
116
  /**
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://txfx.net/wordpress-plugins/donate
5
  Tags: page, redirect, link, external link, repoint
6
  Requires at least: 4.8
7
  Tested up to: 4.9.6
8
- Stable tag: 2.11.0
9
 
10
  Lets you make a WordPress page (or port or other content type) link to a URL of your choosing (on your site, or on another site), instead of its normal WordPress URL.
11
 
@@ -64,6 +64,9 @@ You can contribute (or report bugs) on [Github](https://github.com/markjaquith/p
64
 
65
  == Changelog ==
66
 
 
 
 
67
  = 2.11.0 =
68
  * Code cleanup
69
 
5
  Tags: page, redirect, link, external link, repoint
6
  Requires at least: 4.8
7
  Tested up to: 4.9.6
8
+ Stable tag: 2.11.1
9
 
10
  Lets you make a WordPress page (or port or other content type) link to a URL of your choosing (on your site, or on another site), instead of its normal WordPress URL.
11
 
64
 
65
  == Changelog ==
66
 
67
+ = 2.11.1 =
68
+ * Restore PHP 5.3 compatibility, broken in 2.11.0
69
+
70
  = 2.11.0 =
71
  * Code cleanup
72