Changeset 2014064
- Timestamp:
- 01/17/2019 11:39:40 AM (7 years ago)
- Location:
- credit-tracker/trunk
- Files:
-
- 3 edited
-
credit-tracker.php (modified) (3 diffs)
-
php/parser/istockphoto.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
credit-tracker/trunk/credit-tracker.php
r2002491 r2014064 7 7 * Author: Labs64 8 8 * Author URI: https://www.labs64.com 9 * Version: 1.1.1 49 * Version: 1.1.15 10 10 * Text Domain: credit-tracker 11 11 * Domain Path: /languages … … 13 13 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt 14 14 * Requires at least: 4.0 15 * Tested up to: 5.0. 215 * Tested up to: 5.0.3 16 16 * 17 17 * @package Credit_Tracker … … 31 31 * Plugin version, used for cache-busting of style and script file references. 32 32 */ 33 define('CREDITTRACKER_VERSION', '1.1.1 4');33 define('CREDITTRACKER_VERSION', '1.1.15'); 34 34 35 35 /** -
credit-tracker/trunk/php/parser/istockphoto.php
r1956590 r2014064 10 10 { 11 11 12 const COPYRIGHT = '©iStock photo.com/%author%';12 const COPYRIGHT = '©iStock.com/%author%'; 13 13 14 const BASE_URL = 'https://www.istockphoto.com/ id/';14 const BASE_URL = 'https://www.istockphoto.com/foto/'; 15 15 16 16 protected function parse($number) … … 28 28 $html = @$doc->loadHTML(wp_remote_retrieve_body($response)); 29 29 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]; 36 32 } 37 33 -
credit-tracker/trunk/readme.txt
r2002491 r2014064 3 3 Tags: 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 4 4 Requires at least: 4.0 5 Tested up to: 5.0. 26 Stable tag: 1.1.1 45 Tested up to: 5.0.3 6 Stable tag: 1.1.15 7 7 License: GPL-2.0+ 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 149 149 == Changelog == 150 150 151 = 1.1.15 = 152 * Change iStockphoto copyright 153 * Test and approve plugin for WordPress 5.0.3 154 151 155 = 1.1.14 = 152 156 * Test and approve plugin for WordPress 5.0.2
Note: See TracChangeset
for help on using the changeset viewer.