Page Links To - Version 2.4.1

Version Description

  • Fixed typo that was preventing 302 redirects from working. props Ryan Murphy.
Download this release

Release Info

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

Code changes from version 2.4 to 2.4.1

Files changed (2) hide show
  1. page-links-to.php +2 -2
  2. readme.txt +5 -2
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.4
7
  Author: Mark Jaquith
8
  Author URI: http://coveredwebservices.com/
9
  */
@@ -223,7 +223,7 @@ class CWS_PageLinksTo {
223
  return;
224
 
225
  $redirect_type = get_post_meta( $wp_query->post->ID, '_links_to_type', true );
226
- $redirect_type = ( $redirect_type = '302' ) ? '302' : '301';
227
  wp_redirect( $link, $redirect_type );
228
  exit;
229
  }
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.4.1
7
  Author: Mark Jaquith
8
  Author URI: http://coveredwebservices.com/
9
  */
223
  return;
224
 
225
  $redirect_type = get_post_meta( $wp_query->post->ID, '_links_to_type', true );
226
+ $redirect_type = ( '302' == $redirect_type ) ? '302' : '301';
227
  wp_redirect( $link, $redirect_type );
228
  exit;
229
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: markjaquith
3
  Donate link: http://txfx.net/wordpress-plugins/donate
4
  Tags: page, redirect, link, external link, repoint
5
  Requires at least: 2.7
6
- Tested up to: 3.0.1
7
- Stable tag: trunk
8
 
9
  Lets you make a WordPress page or post link to a URL of your choosing, instead of its WordPress post or page.
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.4 =
60
  * Rewrote using Singleton best practices
61
  * Fixed a regex bug that could break current menu highlighting. props skarab
3
  Donate link: http://txfx.net/wordpress-plugins/donate
4
  Tags: page, redirect, link, external link, repoint
5
  Requires at least: 2.7
6
+ Tested up to: 3.2
7
+ Stable tag: 2.4.1
8
 
9
  Lets you make a WordPress page or post link to a URL of your choosing, instead of its WordPress post or page.
10
 
56
 
57
  == Changelog ==
58
 
59
+ = 2.4.1 =
60
+ * Fixed typo that was preventing 302 redirects from working. props Ryan Murphy.
61
+
62
  = 2.4 =
63
  * Rewrote using Singleton best practices
64
  * Fixed a regex bug that could break current menu highlighting. props skarab