Plugin Directory

Changeset 1210420


Ignore:
Timestamp:
07/31/2015 03:16:24 PM (11 years ago)
Author:
bendoh
Message:

2.4.1 Release: Fix embedding on https sites

Location:
getty-images/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • getty-images/trunk/getty-images.php

    r1163691 r1210420  
    66Author: gettyImages
    77Author URI: http://gettyimages.com/
    8 Version: 2.4.0
     8Version: 2.4.1
    99*/
    1010
  • getty-images/trunk/js/getty-models.js

    r1163686 r1210420  
    7777                    // to CreateSession results in an error.
    7878                    if(endpoint != 'CreateSession' && endpoint != 'CreateApplicationSession') {
    79                         var tokens = session ? session : getty.user.anonymous;
     79                        var tokens = session ? session : getty.anonymous;
    8080
    8181                        // Choose correct session token based on request protocol
    82                         if(url.match(/^https:/) || (url.match(/^\/\//) && location.protocol === 'https:')) {
     82                        if(url.match(/^https:/) || (url.match(/^\/\//) && location.protocol === 'https:') && tokens.secure) {
    8383                            payload.RequestHeader.Token = tokens.secure;
    8484                        }
     
    847847            // Refresh the session only if it's 1 minute before or any time after
    848848            // expiration
    849             var session = this.anonymous;
     849            var session = getty.anonymous;
    850850
    851851            if(!session || session.expires < new Date().getTime() / 1000 - 60) {
    852852                // No session or most definitely timed out session, create a new one
    853                 var self = this;
    854 
    855                 session = this.anonymous = { promise: $.Deferred() };
     853                var self = getty;
     854
     855                session = getty.anonymous = { promise: $.Deferred() };
    856856
    857857                api.request('CreateApplicationSession', {
  • getty-images/trunk/readme.txt

    r1163691 r1210420  
    44Requires at least: 3.9
    55Tested up to: 4.1
    6 Stable tag: 2.4.0
     6Stable tag: 2.4.1
    77License: GPLv2 or later
    88
     
    5151== Changelog ==
    5252
     53= 2.4.1 =
     54* Fix bug that prevented image embed searches from https sites
     55
    5356= 2.4.0 =
    5457* Provide align and image size display settings for embeddable images
Note: See TracChangeset for help on using the changeset viewer.