Plugin Directory

Changeset 2796659


Ignore:
Timestamp:
10/10/2022 01:25:50 PM (3 years ago)
Author:
shorthandconnect
Message:

Created tag 1.3.24

Location:
shorthand-connect/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shorthand-connect/trunk/README.txt

    r2795012 r2796659  
    55Requires at least: 4.0
    66Tested up to: 6.0.1
    7 Stable tag: 1.3.23
     7Stable tag: 1.3.24
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    6060== Changelog ==
    6161
     62= 1.3.24 =
     63* Media-only fetch will now strictly fetch only media to remove potential over-write errors upon extraction.
     64
    6265= 1.3.23 =
    6366* Add extra debug option to execute media-only fetch.
  • shorthand-connect/trunk/includes/api-v2.php

    r2795010 r2796659  
    102102}
    103103
    104 function sh_copy_story($post_id, $story_id, $without_assets=false) {
     104function sh_copy_story($post_id, $story_id, $without_assets=false, $assets_only=false) {
    105105
    106106    wp_raise_memory_limit('admin');
     
    114114    //Attempt to connect to the server
    115115    $zip_file = wp_tempnam('sh_zip',$tmpdir);
    116     $response = sh_v2_api_get('/v2/stories/'.$story_id.($without_assets?'?without_assets=true':''), array(
     116    $response = sh_v2_api_get('/v2/stories/'.$story_id.($without_assets?'?without_assets=true':'').($assets_only?'?assets_only=true':''), array(
    117117        'timeout' => '600',
    118118        'stream' => true,
  • shorthand-connect/trunk/shorthand_connect.php

    r2795010 r2796659  
    33/**
    44 * @package Shorthand Connect
    5  * @version 1.3.23
     5 * @version 1.3.24
    66 */
    77/*
     
    1010Description: Import your Shorthand stories into your Wordpress CMS as simply as possible - magic!
    1111Author: Shorthand
    12 Version: 1.3.23
     12Version: 1.3.24
    1313Author URI: http://shorthand.com
    1414*/
     
    275275function shand_save_media_fetch($post_id, $story_id){
    276276    update_post_meta($post_id, 'media_status', '[Fetching media...]');
    277     $media = sh_copy_story($post_id, $story_id, false );
     277    $media = sh_copy_story($post_id, $story_id, false, true );
    278278    if (isset($media['error'])) {
    279279        $error = json_encode($media['error']);
     
    336336        if($sh_media_cron_offload){
    337337            update_post_meta($post_id, 'media_status', '[Awaiting media fetch...]');
    338             wp_schedule_single_event(time() + 20, 'sh_media_fetch', array( $post_id, $safe_story_id ));
     338            wp_schedule_single_event(time() + 30, 'sh_media_fetch', array( $post_id, $safe_story_id ));
    339339        }
    340340
Note: See TracChangeset for help on using the changeset viewer.