Plugin Directory

Changeset 2339437


Ignore:
Timestamp:
07/13/2020 12:25:17 AM (6 years ago)
Author:
pinecast
Message:

[1.0.7] Version 1.0.7

Location:
pinecast-wp-sync
Files:
9 edited
6 copied

Legend:

Unmodified
Added
Removed
  • pinecast-wp-sync/tags/1.0.7/includes/class-podcast.php

    r2310548 r2339437  
    390390
    391391        if ( $this->use_featured_image() ) {
    392             if ($data->image && $attachment_id = $this->import_episode_image( $data->image, $post_id ) ) {
     392            if (!empty($data->image) && $attachment_id = $this->import_episode_image( $data->image, $post_id ) ) {
    393393                set_post_thumbnail( $post_id, $attachment_id );
    394394            }
  • pinecast-wp-sync/tags/1.0.7/includes/cron-functions.php

    r2120413 r2339437  
    2525    $podcasts = get_podcasts();
    2626
     27    // Sort the podcast list by last updated (lexicographical sort == chronological sort) ascending.
     28    // We want to refresh the least-recently updated feed first.
     29    usort($podcasts, function ($a, $b) {
     30        return strcmp(strtolower($a->get_last_updated()), strtolower($b->get_last_updated()));
     31    });
     32
    2733    array_walk( $podcasts, function( $podcast ) {
    2834        /** @var Podcast $podcast */
  • pinecast-wp-sync/tags/1.0.7/package-lock.json

    r2310549 r2339437  
    11{
    22  "name": "pinecast",
    3   "version": "1.0.6",
     3  "version": "1.0.7",
    44  "lockfileVersion": 1,
    55  "requires": true,
  • pinecast-wp-sync/tags/1.0.7/package.json

    r2310549 r2339437  
    11{
    22  "name": "pinecast",
    3   "version": "1.0.6",
     3  "version": "1.0.7",
    44  "description": "",
    55  "main": "gulpfile.js",
  • pinecast-wp-sync/tags/1.0.7/pinecast.php

    r2310549 r2339437  
    88
    99        /** @var string Plugin version */
    10         public $version = '1.0.6';
     10        public $version = '1.0.7';
    1111
    1212        /** @var string Main plugin file */
  • pinecast-wp-sync/tags/1.0.7/plugin.php

    r2310549 r2339437  
    44 * Plugin URI:      https://help.pinecast.com/articles/3072843-pinecast-wordpress-sync-plugin
    55 * Description:     Sync your Pinecast podcast episodes from Pinecast to WordPress
    6  * Version:         1.0.6
     6 * Version:         1.0.7
    77 * Author:          Pinecast
    88 * Author URI:      https://pinecast.com
  • pinecast-wp-sync/tags/1.0.7/readme.txt

    r2310549 r2339437  
    2929== Changelog ==
    3030
     31= 1.0.7 =
     32* Feeds now refresh in order of least-recently-updated first.
     33
    3134= 1.0 =
    3235* The initial release
  • pinecast-wp-sync/trunk/includes/class-podcast.php

    r2310548 r2339437  
    390390
    391391        if ( $this->use_featured_image() ) {
    392             if ($data->image && $attachment_id = $this->import_episode_image( $data->image, $post_id ) ) {
     392            if (!empty($data->image) && $attachment_id = $this->import_episode_image( $data->image, $post_id ) ) {
    393393                set_post_thumbnail( $post_id, $attachment_id );
    394394            }
  • pinecast-wp-sync/trunk/includes/cron-functions.php

    r2120413 r2339437  
    2525    $podcasts = get_podcasts();
    2626
     27    // Sort the podcast list by last updated (lexicographical sort == chronological sort) ascending.
     28    // We want to refresh the least-recently updated feed first.
     29    usort($podcasts, function ($a, $b) {
     30        return strcmp(strtolower($a->get_last_updated()), strtolower($b->get_last_updated()));
     31    });
     32
    2733    array_walk( $podcasts, function( $podcast ) {
    2834        /** @var Podcast $podcast */
  • pinecast-wp-sync/trunk/package-lock.json

    r2310549 r2339437  
    11{
    22  "name": "pinecast",
    3   "version": "1.0.6",
     3  "version": "1.0.7",
    44  "lockfileVersion": 1,
    55  "requires": true,
  • pinecast-wp-sync/trunk/package.json

    r2310549 r2339437  
    11{
    22  "name": "pinecast",
    3   "version": "1.0.6",
     3  "version": "1.0.7",
    44  "description": "",
    55  "main": "gulpfile.js",
  • pinecast-wp-sync/trunk/pinecast.php

    r2310549 r2339437  
    88
    99        /** @var string Plugin version */
    10         public $version = '1.0.6';
     10        public $version = '1.0.7';
    1111
    1212        /** @var string Main plugin file */
  • pinecast-wp-sync/trunk/plugin.php

    r2310549 r2339437  
    44 * Plugin URI:      https://help.pinecast.com/articles/3072843-pinecast-wordpress-sync-plugin
    55 * Description:     Sync your Pinecast podcast episodes from Pinecast to WordPress
    6  * Version:         1.0.6
     6 * Version:         1.0.7
    77 * Author:          Pinecast
    88 * Author URI:      https://pinecast.com
  • pinecast-wp-sync/trunk/readme.txt

    r2310549 r2339437  
    2929== Changelog ==
    3030
     31= 1.0.7 =
     32* Feeds now refresh in order of least-recently-updated first.
     33
    3134= 1.0 =
    3235* The initial release
Note: See TracChangeset for help on using the changeset viewer.