Plugin Directory

Changeset 204365


Ignore:
Timestamp:
02/11/2010 10:05:13 PM (16 years ago)
Author:
akrabat
Message:

handle failures better

Location:
shorter-links/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shorter-links/trunk/readme.txt

    r192197 r204365  
    55Requires at least: 2.5
    66Tested up to: 2.9
    7 Stable tag: 1.6
     7Stable tag: 1.7
    88
    99This plugin creates rel="shorturl" link with a shorter URL in it, along with
     
    4141== Installation ==
    4242
    43 1. Upload `shorter_links.php` to the `/wp-content/plugins/` directory
     431. Upload `shorter_links.php and config.php` to `/wp-content/plugins/shorter-links` directory
    44442. Activate the plugin through the 'Plugins' menu in WordPress
    45453. If you want to set a different base URL, change it from
     
    7171== History ==
    7272
     73**1.7 - 11 Feburary 2010**
     74Handle failures better.
     75
    7376**1.6 - 10 January 2010**
    7477Update version number in correct places so that the WP plugins system notices the update.
  • shorter-links/trunk/shorter_links.php

    r192197 r204365  
    44 * @author Rob Allen (rob@akrabat.com)
    55 * @license New BSD: http://akrabat.com/license/new-bsd
    6  * @version 1.6
     6 * @version 1.7
    77 */
    88/*
     
    1111Description: Provide a link in the header with rel="shorturl" along with a Link HTTP header and custom shortcodes
    1212Author: Rob Allen
    13 Version: 1.6
     13Version: 1.7
    1414Author URI: http://akrabat.com
    1515*/
     
    7272
    7373    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);
    7579        exit;
    7680    }
Note: See TracChangeset for help on using the changeset viewer.