WordPress.org

Ready to get started?Download WordPress

Forums

URL Shortener
[resolved] Bug with api username, api key, and service (2 posts)

  1. kjohn
    Member
    Posted 3 years ago #

    I was having some trouble getting your plugin to recognize my bitly api username and key until I saw that there are a few typos in the od_get_shortlink.php preventing me from using my custom shortener.

    On lines 9-13:

    if (!$key && in_array($service, $this->authkey)){
    		//$key = $options['apiuser_'.$service]; //wrong var
    		$key = $options['apikey_'.$service];
    
    	}
        if (!$user && in_array($service, $this->authuser)){
    		//$user = $options['apikey_'.$services]; //wrong var & mispelled
    		$user = $options['apiuser_'.$service];

    Once I made the above modifications, it works great! Thanks for your tremendously useful plugin and hopefully, this will help others.

  2. Gerald
    Member
    Plugin Author

    Posted 3 years ago #

    @kjohn:

    Thanks for reporting the bugs!

    Your changes have been committed to the repository and released under plugin version 3.1.2.

    Cheers!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic