Page Links To - Version 2.3

Version Description

  • Fixed a bug with current menu item highlighting
Download this release

Release Info

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

Code changes from version 2.2 to 2.3

Files changed (2) hide show
  1. page-links-to.php +2 -2
  2. readme.txt +6 -1
page-links-to.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Page Links To
4
Plugin URI: http://txfx.net/code/wordpress/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.2
7
Author: Mark Jaquith
8
Author URI: http://coveredwebservices.com/
9
*/
@@ -183,7 +183,7 @@ function txfx_page_links_to_highlight_tabs( $pages ) {
183
184
if ( $highlight ) {
185
$pages = preg_replace( '| class="([^"]+)current_page_item"|', ' class="$1"', $pages ); // Kill default highlighting
186
- $pages = preg_replace( '<li class="([^"]+)"><a href="' . $current_page . '"', '<li class="$1 current_page_item"><a href="' . $current_page . '"', $pages );
187
}
188
189
return $pages;
3
Plugin Name: Page Links To
4
Plugin URI: http://txfx.net/code/wordpress/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.3
7
Author: Mark Jaquith
8
Author URI: http://coveredwebservices.com/
9
*/
183
184
if ( $highlight ) {
185
$pages = preg_replace( '| class="([^"]+)current_page_item"|', ' class="$1"', $pages ); // Kill default highlighting
186
+ $pages = preg_replace( '|<li class="([^"]+)"><a href="' . $current_page . '"|', '<li class="$1 current_page_item"><a href="' . $current_page . '"', $pages );
187
}
188
189
return $pages;
readme.txt CHANGED
@@ -56,8 +56,13 @@ Yes. Linking to `/my-photos.php` is a good idea, as it'll still work if you move
56
57
== Changelog ==
58
59
= 2.2 =
60
- * Cleanup, compatibility tweaks to interoperate with a few other plugins, prompt http:// and auto-add it if a URL starts with "www."
61
62
= 2.1 =
63
* WordPress MU compatibility for when `switch_to_blog()` is used... it now uses `$blog_id` to keep their caches from stomping on each other
56
57
== Changelog ==
58
59
+ = 2.3 =
60
+ * Fixed a bug with current menu item highlighting
61
+
62
= 2.2 =
63
+ * Cleanup
64
+ * compatibility tweaks to interoperate with a few other plugins
65
+ * prompt http:// and auto-add it if a URL starts with "www."
66
67
= 2.1 =
68
* WordPress MU compatibility for when `switch_to_blog()` is used... it now uses `$blog_id` to keep their caches from stomping on each other