Plugin Directory

Changeset 2154545


Ignore:
Timestamp:
09/11/2019 04:55:55 AM (7 years ago)
Author:
conoha
Message:

version 1.1.4
bug fix

Location:
wing-migrator
Files:
40 added
4 edited

Legend:

Unmodified
Added
Removed
  • wing-migrator/trunk/classes/jobs/tasks/class-wwm-task-restore-download.php

    r2153901 r2154545  
    7979        $file_info = Wwm_File_Utils::get_file_info( $backup_url );
    8080
    81         if ( $file_info[ 'file_exists' ] === false || $file_info[ 'content_length' ] === 0 ) {
     81        if ( $file_info[ 'file_exists' ] === false ) {
    8282            $this->logger->info( 'backup file cannot download' );
    8383            $this->logger->info( print_r( $file_info, true ) );
     
    9090        $content_length = $file_info[ 'content_length' ];
    9191
    92         if ( $content_length <= $this::$chunk_download_threshold ) {
     92        if ( $content_length <= $this::$chunk_download_threshold || $file_info[ 'is_range_support' ] === false ) {
    9393            $result = $this->normal_download( $file_path, $backup_url );
    9494        } else {
  • wing-migrator/trunk/classes/utils/class-wwm-migration-file-utils.php

    r2153901 r2154545  
    174174        foreach ( $data as $part ) {
    175175            $header_parts = explode( ":", $part, 2 );
    176 
    177             if ( $header_parts[ 0 ] === 'Content-Length' ) {
     176            $header_data = strtolower( $header_parts[ 0 ] );
     177            if ( $header_data === 'content-length' ) {
    178178                $content_length = (int)$header_parts[ 1 ];
    179             } elseif ( $header_parts[ 0 ] === 'Accept-Ranges' && trim( $header_parts[ 1 ] ) === 'bytes' ) {
     179            } elseif ( $header_data === 'accept-ranges' && trim( $header_parts[ 1 ] ) === 'bytes' ) {
    180180                $is_range_support = true;
    181181            }
  • wing-migrator/trunk/readme.txt

    r2153901 r2154545  
    55Tested up to: 5.1.1
    66Requires PHP: 5.3
    7 Stable tag: 1.1.3
     7Stable tag: 1.1.4
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5252
    5353== Changelog ==
     54= 1.1.4 =
     55* bug fix.
     56
    5457= 1.1.3 =
    5558* Fix restore download logic.
  • wing-migrator/trunk/wing-migrator.php

    r2153901 r2154545  
    44Plugin URI: https://wordpress.org/plugins/wing-migrator/
    55Description: ConoHa WINGのWordPressで「WING WordPress Migration」をご利用いただくためのプラグインです。
    6 Version: 1.1.3
     6Version: 1.1.4
    77Author: GMO Internet Inc.
    88Author URI: https://www.conoha.jp/
Note: See TracChangeset for help on using the changeset viewer.