Changeset 204365
- Timestamp:
- 02/11/2010 10:05:13 PM (16 years ago)
- Location:
- shorter-links/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
shorter_links.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shorter-links/trunk/readme.txt
r192197 r204365 5 5 Requires at least: 2.5 6 6 Tested up to: 2.9 7 Stable tag: 1. 67 Stable tag: 1.7 8 8 9 9 This plugin creates rel="shorturl" link with a shorter URL in it, along with … … 41 41 == Installation == 42 42 43 1. Upload `shorter_links.php ` to the `/wp-content/plugins/` directory43 1. Upload `shorter_links.php and config.php` to `/wp-content/plugins/shorter-links` directory 44 44 2. Activate the plugin through the 'Plugins' menu in WordPress 45 45 3. If you want to set a different base URL, change it from … … 71 71 == History == 72 72 73 **1.7 - 11 Feburary 2010** 74 Handle failures better. 75 73 76 **1.6 - 10 January 2010** 74 77 Update version number in correct places so that the WP plugins system notices the update. -
shorter-links/trunk/shorter_links.php
r192197 r204365 4 4 * @author Rob Allen (rob@akrabat.com) 5 5 * @license New BSD: http://akrabat.com/license/new-bsd 6 * @version 1. 66 * @version 1.7 7 7 */ 8 8 /* … … 11 11 Description: Provide a link in the header with rel="shorturl" along with a Link HTTP header and custom shortcodes 12 12 Author: Rob Allen 13 Version: 1. 613 Version: 1.7 14 14 Author URI: http://akrabat.com 15 15 */ … … 72 72 73 73 if((int)$shortUrl > 0) { 74 wp_redirect(get_permalink($shortUrl)); 74 $link = get_permalink($shortUrl); 75 if (!$link) { 76 return $query_vars; 77 } 78 wp_redirect($link); 75 79 exit; 76 80 }
Note: See TracChangeset
for help on using the changeset viewer.