WordPress.org

Plugin Directory

Changeset 1316255


Ignore:
Timestamp:
12/25/15 20:10:06 (19 months ago)
Author:
thoefter
Message:

1.13 update

Location:
wp-inject
Files:
18 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-inject/trunk/api.class.php

    r953416 r1316255  
    292292         
    293293        if ( function_exists('curl_init') ) { 
     294            $sslfile = ABSPATH . "wp-content/plugins/". plugin_basename( dirname(__FILE__) )."/cert/cacert.pem"; 
     295         
    294296            $ch = curl_init(); 
    295297            curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Konqueror/4.0; Microsoft Windows) KHTML/4.0.80 (like Gecko)"); 
     
    297299            curl_setopt($ch, CURLOPT_URL, $request); 
    298300            curl_setopt($ch, CURLOPT_TIMEOUT, 60);   
    299             if($source == "commissionjunction") {curl_setopt($ch, CURLOPT_HTTPHEADER, array( 
    300                 'Host: link-search.api.cj.com', 
    301                 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8', 
    302                 'Authorization: '.$optionsarray["appid"]["value"], 
    303                 'Content-Type: application/xml' 
    304                 )); }                    
     301             
     302            curl_setopt($ch, CURLOPT_CAINFO, $sslfile); 
     303            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); 
     304            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);     
     305             
    305306            $response = curl_exec($ch); 
    306307 
  • wp-inject/trunk/info_sources_options.php

    r969235 r1316255  
    3636        "pixabay" => array( 
    3737            //"request" => 'http://pixabay.com/api/?username=thoefter&key=47b0f746df60162dfc2c&search_term={keyword}&image_type={image_type}',   
    38             "request" => 'http://pixabay.com/api/?username=wpinject&key=553b628f0c9d3dd72f82&search_term={keyword}&image_type={image_type}&response_group=high_resolution&per_page={num}&page={start}',          
     38            "request" => 'https://pixabay.com/api/?key=281886-58afb50cd9c4019517ce11b78&search_term={keyword}&image_type={image_type}&response_group=high_resolution&per_page={num}&page={start}',           
    3939            "limits" => array("request" => 100, "total" => 1000),        
    4040            "title" => "tags",       
  • wp-inject/trunk/readme.txt

    r1236406 r1316255  
    22Contributors: thoefter, wp-scoop 
    33Tags: insert, imageinject, wpinject, pictures, flickr, api, images, editor, photos, photo, image, inject, creative commons, creative, commons, gallery, media, thumbnail, seo, pixabay, caption, vector, graphics 
    4 Tested up to: 4.3 
    5 Stable tag: 1.12 
     4Tested up to: 4.4 
     5Stable tag: 1.13 
    66License: GPLv2 or later 
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    4141 
    4242== Changelog ==   
     43 
     44= 1.13 = 
     45- Fixed: Bug that prevented Flickr SSL connection from working on certain servers 
     46- Updated: Support for new Pixabay API changes, which will go into effect on Feb 1st 
    4347 
    4448= 1.12 = 
  • wp-inject/trunk/wpinject.php

    r1257081 r1316255  
    33 Plugin Name: ImageInject 
    44 Plugin URI: http://wpscoop.com/wp-inject/ 
    5  Version: 1.12 
     5 Version: 1.13 
    66 Description: Insert photos into your posts or set a featured image in less than a minute! ImageInject allows you to search the huge Flickr image database for creative commons photos directly from within your WordPress editor. Find great photos related to any topic and inject them into your post. Previously known as WP Inject. 
    77 Author: Thomas Hoefter 
    88 Author URI: http://wpscoop.com/ 
    9  Text Domain: wp-inject 
    109*/ 
    1110 
Note: See TracChangeset for help on using the changeset viewer.