Page Links To - Version 2.7.1

Version Description

  • Fix an array bug
Download this release

Release Info

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

Code changes from version 2.7 to 2.7.1

Files changed (2) hide show
  1. page-links-to.php +3 -3
  2. readme.txt +4 -1
page-links-to.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Page Links To
4
  Plugin URI: http://txfx.net/wordpress-plugins/page-links-to/
5
  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.
6
- Version: 2.7
7
  Author: Mark Jaquith
8
  Author URI: http://coveredwebservices.com/
9
  */
@@ -294,9 +294,9 @@ class CWS_PageLinksTo {
294
 
295
  function the_posts( $posts ) {
296
  $page_links_to_target_cache = $this->get_targets();
297
- if ( count( $page_links_to_target_cache ) ) {
298
  $pids = array();
299
- foreach ( $posts as $p )
300
  $pids[$p->ID] = $p->ID;
301
  $targets = array_keys( array_intersect_key( $page_links_to_target_cache, $pids ) );
302
  if ( count( $targets ) ) {
3
  Plugin Name: Page Links To
4
  Plugin URI: http://txfx.net/wordpress-plugins/page-links-to/
5
  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.
6
+ Version: 2.7.1
7
  Author: Mark Jaquith
8
  Author URI: http://coveredwebservices.com/
9
  */
294
 
295
  function the_posts( $posts ) {
296
  $page_links_to_target_cache = $this->get_targets();
297
+ if ( is_array( $page_links_to_target_cache) && count( $page_links_to_target_cache ) ) {
298
  $pids = array();
299
+ foreach ( (array) $posts as $p )
300
  $pids[$p->ID] = $p->ID;
301
  $targets = array_keys( array_intersect_key( $page_links_to_target_cache, $pids ) );
302
  if ( count( $targets ) ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://txfx.net/wordpress-plugins/donate
4
  Tags: page, redirect, link, external link, repoint
5
  Requires at least: 3.3
6
  Tested up to: 3.4
7
- Stable tag: 2.7
8
 
9
  Lets you make a WordPress page (or other content type) link to an external URL of your choosing, instead of its WordPress URL.
10
 
@@ -56,6 +56,9 @@ Yes. Linking to `/my-photos.php` is a good idea, as it'll still work if you move
56
 
57
  == Changelog ==
58
 
 
 
 
59
  = 2.7 =
60
  * Fix a PHP notice
61
  * Use JS to open links in an external window, even outside of nav menus
4
  Tags: page, redirect, link, external link, repoint
5
  Requires at least: 3.3
6
  Tested up to: 3.4
7
+ Stable tag: 2.7.1
8
 
9
  Lets you make a WordPress page (or other content type) link to an external URL of your choosing, instead of its WordPress URL.
10
 
56
 
57
  == Changelog ==
58
 
59
+ = 2.7.1 =
60
+ * Fix an array bug
61
+
62
  = 2.7 =
63
  * Fix a PHP notice
64
  * Use JS to open links in an external window, even outside of nav menus