WordPress.org

Plugin Directory

Changeset 1694302


Ignore:
Timestamp:
07/11/17 10:08:52 (3 months ago)
Author:
mnmlthms
Message:

Update v1.0.3

Location:
wp-my-instagram
Files:
21 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-my-instagram/trunk/js/script.js

    r1690431 r1694302  
    99 
    1010    'use strict'; 
    11  
    12     var create_cache = function(){ 
    13  
    14         $.ajax({ 
    15             url: ajaxurl, 
    16             type: 'GET', 
    17             async: true, 
    18             cache: false, 
    19             // dataType: 'json', 
    20             data: { 
    21                 action: 'wpsc-init-cache', 
    22                 security: wpSocialCounterVars.nonce 
    23             } 
    24         }).done( function( response ){ 
    25  
    26             if( response && response.data ){ 
    27                 for (var key in response.data ) { 
    28                     $('.wpsc-wrapper[data-cached="false"] .' + key + ' .wpsc-service-count' ).text( response.data[key] ); 
    29                 } 
    30             } 
    31              
    32         }); 
    33  
    34     }; 
    3511 
    3612    $(document).ready(function(){ 
     
    5127 
    5228                $.ajax({ 
    53                     url: ajaxurl, 
     29                    url: wpMyInstagramVars.ajaxurl, 
    5430                    type: 'GET', 
    5531                    async: true, 
  • wp-my-instagram/trunk/js/script.min.js

    r1690431 r1694302  
    1 !function(a){"use strict";a(document).ready(function(){var t=a('.wp-my-instagram.wpmi[data-cached="false"]'),i={};t.length&&(t.each(function(){var t=a(this),n=t.attr("id");i[n]=t.data("args")}),i&&a.ajax({url:ajaxurl,type:"GET",async:!0,cache:!1,data:{action:"wpmi-init-cache",security:wpMyInstagramVars.nonce,args:i}}).done(function(t){if(t&&t.data)for(var i in t.data){var n=a("#"+i+".wp-my-instagram.wpmi");a(".wpmi-list",n).html(t.data[i]),n.attr("data-cached","true")}}))})}(window.jQuery); 
     1!function(a){"use strict";a(document).ready(function(){var t=a('.wp-my-instagram.wpmi[data-cached="false"]'),n={};t.length&&(t.each(function(){var t=a(this),r=t.attr("id");n[r]=t.data("args")}),n&&a.ajax({url:wpMyInstagramVars.ajaxurl,type:"GET",async:!0,cache:!1,data:{action:"wpmi-init-cache",security:wpMyInstagramVars.nonce,args:n}}).done(function(t){if(t&&t.data)for(var n in t.data){var r=a("#"+n+".wp-my-instagram.wpmi");a(".wpmi-list",r).html(t.data[n]),r.attr("data-cached","true")}}))})}(window.jQuery); 
  • wp-my-instagram/trunk/readme.txt

    r1690431 r1694302  
    55Requires at least: 3.9 
    66Tested up to: 4.8 
    7 Stable tag: 1.0.2 
     7Stable tag: 1.0.3 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    6666== Changelog == 
    6767 
     68= 1.0.3 = 
     69* Ajaxurl bugfix 
     70 
    6871= 1.0.2 = 
    6972* Fix Minor bugs 
  • wp-my-instagram/trunk/wp-my-instagram.php

    r1690431 r1694302  
    44Plugin URI: https://wordpress.org/plugins/wp-my-instagram 
    55Description: A better version of WP Instagram Widget, allow you get more than 12 images from instagram 
    6 Version: 1.0.2 
     6Version: 1.0.3 
    77Author: mnmlthms 
    88Author URI: http://mnmlthms.com 
     
    2929if ( ! defined( 'ABSPATH' ) ) exit; 
    3030 
    31 define( 'WP_MY_INSTAGRAM_VERSION', '1.0.2' ); 
    32 define( 'WP_MY_INSTAGRAM_OPTION', 'wp_my_instagram_instagram' ); 
     31define( 'WP_MY_INSTAGRAM_VERSION', '1.0.3' ); 
     32define( 'WP_MY_INSTAGRAM_OPTION', 'wp_my_instagram' ); 
    3333 
    3434if( !class_exists( 'WP_My_Instagram' ) ): 
     
    117117            wp_register_script( 'wp-my-instagram', WP_My_Instagram::get_url() . 'js/script' . $suffix . '.js', array( 'jquery' ), '1.0' ); 
    118118            wp_localize_script( 'wp-my-instagram', 'wpMyInstagramVars', array( 
    119                 'nonce'     => esc_js( wp_create_nonce( 'wpmi-init-cache-nonce' ) ),     
     119                'nonce'     => esc_js( wp_create_nonce( 'wpmi-init-cache-nonce' ) ), 
     120                'ajaxurl'   => admin_url( 'admin-ajax.php' ) 
    120121            ) ); 
    121122        } 
Note: See TracChangeset for help on using the changeset viewer.