Plugin Directory

Changeset 2473390


Ignore:
Timestamp:
02/11/2021 11:13:15 PM (5 years ago)
Author:
pinecast
Message:

[1.0.14] Fix certain types of sync errors

Location:
pinecast-wp-sync
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pinecast-wp-sync/tags/1.0.14/dist/admin/js/pinecast.min.js

    r2122321 r2473390  
    1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.find(".otherwise-required").attr("required","required"),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);
     1"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").text(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.find(".otherwise-required").attr("required","required"),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);
  • pinecast-wp-sync/tags/1.0.14/includes/class-podcast.php

    r2446997 r2473390  
    399399            if (has_post_thumbnail($post_id)) {
    400400                delete_post_thumbnail($post_id);
    401                 delete_post_metadata($post_id, '_pinecast_image');
     401                delete_post_meta($post_id, '_pinecast_image');
    402402            }
    403403        }
     
    432432                // If there was an existing image that's not the current image, delete it.
    433433                delete_post_thumbnail($post_id);
    434                 delete_post_metadata($post_id, '_pinecast_image');
     434                delete_post_meta($post_id, '_pinecast_image');
    435435            } elseif (has_post_thumbnail($post_id)) {
    436436                // If there was an existing image that's not from Pinecast,
  • pinecast-wp-sync/tags/1.0.14/package-lock.json

    r2446997 r2473390  
    11{
    22  "name": "pinecast",
    3   "version": "1.0.13",
     3  "version": "1.0.14",
    44  "lockfileVersion": 1,
    55  "requires": true,
  • pinecast-wp-sync/tags/1.0.14/package.json

    r2446997 r2473390  
    11{
    22  "name": "pinecast",
    3   "version": "1.0.13",
     3  "version": "1.0.14",
    44  "description": "",
    55  "main": "gulpfile.js",
  • pinecast-wp-sync/tags/1.0.14/pinecast.php

    r2446997 r2473390  
    88
    99        /** @var string Plugin version */
    10         public $version = '1.0.13';
     10        public $version = '1.0.14';
    1111
    1212        /** @var string Main plugin file */
  • pinecast-wp-sync/tags/1.0.14/plugin.php

    r2446997 r2473390  
    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.13
     6 * Version:         1.0.14
    77 * Author:          Pinecast
    88 * Author URI:      https://pinecast.com
  • pinecast-wp-sync/tags/1.0.14/readme.txt

    r2446997 r2473390  
    44Requires at least: 5.2
    55Tested up to: 5.6
    6 Stable tag: 1.0.13
     6Stable tag: 1.0.14
    77Requires PHP: 7.0
    88License: GPLv2 or later
  • pinecast-wp-sync/trunk/dist/admin/js/pinecast.min.js

    r2122321 r2473390  
    1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.find(".otherwise-required").attr("required","required"),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);
     1"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").text(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.find(".otherwise-required").attr("required","required"),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);
  • pinecast-wp-sync/trunk/includes/class-podcast.php

    r2446997 r2473390  
    399399            if (has_post_thumbnail($post_id)) {
    400400                delete_post_thumbnail($post_id);
    401                 delete_post_metadata($post_id, '_pinecast_image');
     401                delete_post_meta($post_id, '_pinecast_image');
    402402            }
    403403        }
     
    432432                // If there was an existing image that's not the current image, delete it.
    433433                delete_post_thumbnail($post_id);
    434                 delete_post_metadata($post_id, '_pinecast_image');
     434                delete_post_meta($post_id, '_pinecast_image');
    435435            } elseif (has_post_thumbnail($post_id)) {
    436436                // If there was an existing image that's not from Pinecast,
  • pinecast-wp-sync/trunk/package-lock.json

    r2446997 r2473390  
    11{
    22  "name": "pinecast",
    3   "version": "1.0.13",
     3  "version": "1.0.14",
    44  "lockfileVersion": 1,
    55  "requires": true,
  • pinecast-wp-sync/trunk/package.json

    r2446997 r2473390  
    11{
    22  "name": "pinecast",
    3   "version": "1.0.13",
     3  "version": "1.0.14",
    44  "description": "",
    55  "main": "gulpfile.js",
  • pinecast-wp-sync/trunk/pinecast.php

    r2446997 r2473390  
    88
    99        /** @var string Plugin version */
    10         public $version = '1.0.13';
     10        public $version = '1.0.14';
    1111
    1212        /** @var string Main plugin file */
  • pinecast-wp-sync/trunk/plugin.php

    r2446997 r2473390  
    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.13
     6 * Version:         1.0.14
    77 * Author:          Pinecast
    88 * Author URI:      https://pinecast.com
  • pinecast-wp-sync/trunk/readme.txt

    r2446997 r2473390  
    44Requires at least: 5.2
    55Tested up to: 5.6
    6 Stable tag: 1.0.13
     6Stable tag: 1.0.14
    77Requires PHP: 7.0
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.