Plugin Directory

Changeset 1517527


Ignore:
Timestamp:
10/18/2016 07:01:11 PM (9 years ago)
Author:
bjoerne
Message:

Prepare new version: don't fail if response code isn't 2xx in get_final_url()

Location:
ifttt-instagram-gallery/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ifttt-instagram-gallery/trunk/README.txt

    r1371777 r1517527  
    44Tags: ifttt, ifthisthenthat, instagram, gallery
    55Requires at least: 3.9
    6 Tested up to: 4.4.2
     6Tested up to: 4.6.1
    77Stable tag: trunk
    88License: GPLv3
     
    121121= 1.0.4 =
    122122* Bugfix after changed instagram URLs. Crop query part, e.g. invoke https://scontent-frt3-1.cdninstagram.com/t51.2885-15/e35/1208218_821804957925622_1457586436_n.jpg instead of https://scontent-frt3-1.cdninstagram.com/t51.2885-15/e35/1208218_821804957925622_1457586436_n.jpg?ig_cache_key=MTIwNDU4NDU1NzU3MjMxODAxNg%3D%3D.2
     123
     124= 1.0.5 =
     125* Enhancement in get_final_url() method: Don't fail if response code isn't 2xx, just use the last known URL. Avoids problems when Instagram returns a code 400 because of spammy behaviour.
  • ifttt-instagram-gallery/trunk/ifttt-instagram-gallery.php

    r1371777 r1517527  
    1111 * Plugin URI:        http://www.bjoerne.com
    1212 * Description:       IFTTT Instagram Gallery is a highly configurable widget that automatically shares your latest Instagram pictures in an amazing looking photo grid on your WordPress blog.
    13  * Version:           1.0.4
     13 * Version:           1.0.5
    1414 * Author:            Björn Weinbrenner
    1515 * Author URI:        http://www.bjoerne.com/
  • ifttt-instagram-gallery/trunk/public/class-ifttt-instagram-gallery.php

    r1371777 r1517527  
    2929     * @var     string
    3030     */
    31     const VERSION = '1.0.4';
     31    const VERSION = '1.0.5';
    3232
    3333    /**
     
    141141                    throw new Exception( 'No redirect url found in Location header' );
    142142                }
    143             } elseif ( preg_match( '/^20.$/', $reponse_code ) ) {
    144                 return $url;
    145143            } else {
    146                 throw new Exception( "Unexpected response code for url '$url': $reponse_code" );
    147             }
    148         }
     144                break;
     145            }
     146        }
     147        return $url;
    149148    }
    150149
Note: See TracChangeset for help on using the changeset viewer.