Version Description
- Allow one-character URLs so that things like "#" (dummy link) are possible
Download this release
Release Info
Developer | markjaquith |
Plugin | Page Links To |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.9 to 2.0
- page-links-to.php +2 -2
- readme.txt +2 -0
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:
|
7 |
Author: Mark Jaquith
|
8 |
Author URI: http://coveredwebservices.com/
|
9 |
*/
|
@@ -91,7 +91,7 @@ function txfx_plt_meta_box() {
|
|
91 |
|
92 |
function txfx_plt_save_meta_box( $post_ID ) {
|
93 |
if ( wp_verify_nonce( $_REQUEST['_txfx_pl2_nonce'], 'txfx_plt' ) ) {
|
94 |
-
if ( isset( $_POST['txfx_links_to'] ) && strlen( $_POST['txfx_links_to'] ) >
|
95 |
update_post_meta( $post_ID, '_links_to', $_POST['txfx_links_to'] );
|
96 |
if ( isset( $_POST['txfx_links_to_new_window'] ) )
|
97 |
update_post_meta( $post_ID, '_links_to_target', '_blank' );
|
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.0
|
7 |
Author: Mark Jaquith
|
8 |
Author URI: http://coveredwebservices.com/
|
9 |
*/
|
91 |
|
92 |
function txfx_plt_save_meta_box( $post_ID ) {
|
93 |
if ( wp_verify_nonce( $_REQUEST['_txfx_pl2_nonce'], 'txfx_plt' ) ) {
|
94 |
+
if ( isset( $_POST['txfx_links_to'] ) && strlen( $_POST['txfx_links_to'] ) > 0 ) {
|
95 |
update_post_meta( $post_ID, '_links_to', $_POST['txfx_links_to'] );
|
96 |
if ( isset( $_POST['txfx_links_to_new_window'] ) )
|
97 |
update_post_meta( $post_ID, '_links_to_target', '_blank' );
|
readme.txt
CHANGED
@@ -35,6 +35,8 @@ This is useful for setting up navigational links to non-WordPress sections of yo
|
|
35 |
1. The Page Links To meta box in action
|
36 |
|
37 |
== Changelog ==
|
|
|
|
|
38 |
|
39 |
= 1.9 =
|
40 |
* Fixed "open in new window" functionality
|
35 |
1. The Page Links To meta box in action
|
36 |
|
37 |
== Changelog ==
|
38 |
+
= 2.0 =
|
39 |
+
* Allow one-character URLs so that things like "#" (dummy link) are possible
|
40 |
|
41 |
= 1.9 =
|
42 |
* Fixed "open in new window" functionality
|