Plugin Directory

Changeset 2014064


Ignore:
Timestamp:
01/17/2019 11:39:40 AM (7 years ago)
Author:
labs64
Message:

Preparing for 1.1.15 release

Location:
credit-tracker/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • credit-tracker/trunk/credit-tracker.php

    r2002491 r2014064  
    77 * Author:      Labs64
    88 * Author URI:  https://www.labs64.com
    9  * Version:     1.1.14
     9 * Version:     1.1.15
    1010 * Text Domain: credit-tracker
    1111 * Domain Path: /languages
     
    1313 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
    1414 * Requires at least: 4.0
    15  * Tested up to: 5.0.2
     15 * Tested up to: 5.0.3
    1616 *
    1717 * @package   Credit_Tracker
     
    3131 * Plugin version, used for cache-busting of style and script file references.
    3232 */
    33 define('CREDITTRACKER_VERSION', '1.1.14');
     33define('CREDITTRACKER_VERSION', '1.1.15');
    3434
    3535/**
  • credit-tracker/trunk/php/parser/istockphoto.php

    r1956590 r2014064  
    1010{
    1111
    12     const COPYRIGHT = '©iStockphoto.com/%author%';
     12    const COPYRIGHT = '©iStock.com/%author%';
    1313
    14     const BASE_URL = 'https://www.istockphoto.com/id/';
     14    const BASE_URL = 'https://www.istockphoto.com/foto/';
    1515
    1616    protected function parse($number)
     
    2828        $html = @$doc->loadHTML(wp_remote_retrieve_body($response));
    2929        if ($html) {
    30             $xpath = new DOMXPath($doc);
    31 
    32             $tags = $xpath->query("*/meta[@property='og:author']");
    33             if (!is_null($tags) && $tags->length > 0) {
    34                 $item['author'] = $tags->item(0)->getAttribute('content');
    35             }
     30          preg_match('<a class="photographer".*href=".*portfolio\/(.*)\?mediatype=photography">', wp_remote_retrieve_body($response), $matches);
     31          $item['author'] = $matches[1];
    3632        }
    3733
  • credit-tracker/trunk/readme.txt

    r2002491 r2014064  
    33Tags: credit, attribution, legal, copyright, owner, author, media library, media, image, photo, license, royalty-free, RF, Creative Commons, stock, attachment, flickr, fotolia, unsplash, bildnachweis, impressum, imprint, microdata, NetLicensing
    44Requires at least: 4.0
    5 Tested up to: 5.0.2
    6 Stable tag: 1.1.14
     5Tested up to: 5.0.3
     6Stable tag: 1.1.15
    77License: GPL-2.0+
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    149149== Changelog ==
    150150
     151= 1.1.15 =
     152* Change iStockphoto copyright
     153* Test and approve plugin for WordPress 5.0.3
     154
    151155= 1.1.14 =
    152156* Test and approve plugin for WordPress 5.0.2
Note: See TracChangeset for help on using the changeset viewer.