Changeset 2391388
- Timestamp:
- 10/01/2020 06:24:05 AM (5 years ago)
- Location:
- credit-tracker/trunk
- Files:
-
- 6 edited
-
README.md (modified) (2 diffs)
-
credit-tracker-functions.php (modified) (3 diffs)
-
credit-tracker-shortcodes.php (modified) (2 diffs)
-
credit-tracker.php (modified) (3 diffs)
-
options.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
credit-tracker/trunk/README.md
r2016074 r2391388 10 10 [](https://wordpress.org/plugins/credit-tracker/) 11 11 [](https://opensource.org/licenses/GPL-3.0) 12 [](https://waffle.io/labs64/credit-tracker)13 12 14 13 --- … … 42 41 ## Showcase 43 42 44 * [Media Credits page at labs64.com](https://www.labs64.com /legal/media-credits/"Media Credits")43 * [Media Credits page at labs64.com](https://www.labs64.com "Media Credits") 45 44 46 45 ## Documentation -
credit-tracker/trunk/credit-tracker-functions.php
r1956590 r2391388 42 42 'size' => 'thumbnail', 43 43 'include' => '0', 44 'numberposts' => -1 44 'numberposts' => -1, 45 'orderby' => 'post__in', 46 'order' => 'DESC', 45 47 ); 46 48 … … 49 51 extract($attr); 50 52 53 // User input sanity checking. Don't allow invalid values. 54 if ( 'date' != $orderby && 'post__in' != $orderby ) { 55 $orderby = 'post__in'; 56 } 57 if ( 'asc' != $order && 'desc' != $order ) { 58 $order = 'DESC'; 59 } 60 51 61 $args = array( 52 62 'include' => $include, … … 54 64 'post_type' => 'attachment', 55 65 'post_mime_type' => 'image', 56 'orderby' => 'post__in', 66 'orderby' => $orderby, 67 'order' => $order, 57 68 'numberposts' => $numberposts 58 69 ); -
credit-tracker/trunk/credit-tracker-shortcodes.php
r2002491 r2391388 43 43 'include_columns' => $columns_set, 44 44 'only_current_post' => false, 45 'orderby' => 'post__in', 46 'order' => 'DESC', 45 47 ), $atts) 46 48 ); … … 63 65 'size' => $size, 64 66 'include' => $id, 67 'orderby' => $orderby, 68 'order' => $order, 65 69 ); 66 70 -
credit-tracker/trunk/credit-tracker.php
r2016074 r2391388 7 7 * Author: Labs64 8 8 * Author URI: https://www.labs64.com 9 * Version: 1.1.1 69 * Version: 1.1.17 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.315 * Tested up to: 5.5.1 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 6');33 define('CREDITTRACKER_VERSION', '1.1.17'); 34 34 35 35 /** -
credit-tracker/trunk/options.php
r2016074 r2391388 329 329 Valid values include "true" or "false". 330 330 The default value is "" - which defaults to "false".</p> 331 <p> <strong>orderby</strong> <i>(optional)</i> - Which value to sort the table on. 332 The only valid value for this field is "date". 333 The default order value will be used if this is not provided.</p> 334 <p> <strong>order</strong> <i>(optional)</i> - Sort results ascending or descending. 335 Valid values include "asc" or "desc". 336 The default value is "desc" - no effect by default, sorts reverse chronologically when sorting by date.</p> 331 337 <br/> 332 338 … … 348 354 349 355 <p>Generate table with the specified columns only and defined columns order</p> 356 <br /> 357 358 <p><code>[credit_tracker_table orderby="date" order="desc"]</code></p> 359 360 <p>Generate table sorted by date the image was added to the Media Library, showing most recent at the top.</p> 350 361 </td> 351 362 </tr> -
credit-tracker/trunk/readme.txt
r2016074 r2391388 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.36 Stable tag: 1.1.1 65 Tested up to: 5.5.1 6 Stable tag: 1.1.17 7 7 License: GPL-2.0+ 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 41 41 = Showcase = 42 42 43 * [Media Credits page at labs64.com](https://www.labs64.com /legal/media-credits/"Media Credits")43 * [Media Credits page at labs64.com](https://www.labs64.com "Media Credits") 44 44 45 45 = Get Involved = … … 149 149 == Changelog == 150 150 151 = 1.1.17 = 152 * Sort attribute credit_tracker_table - [#41](https://github.com/Labs64/credit-tracker/issues/46) 153 * Test and approve plugin for WordPress 5.5.1 154 151 155 = 1.1.16 = 152 156 * Enable Adobe Stock parser … … 168 172 169 173 = 1.1.12 = 170 * Set minimum requirements to Wordpress 4.0, PHP 5.6 and NetLicensing [2.3.8](https:// www.labs64.de/confluence/display/NLICPUB/Release+Notes)174 * Set minimum requirements to Wordpress 4.0, PHP 5.6 and NetLicensing [2.3.8](https://netlicensing.io/wiki/netlicensing-2-3-8-final) 171 175 * Fix "Undefined index: only_current_post" 172 176
Note: See TracChangeset
for help on using the changeset viewer.