Plugin Directory

Changeset 2443245


Ignore:
Timestamp:
12/20/2020 03:24:15 PM (5 years ago)
Author:
spreadsheetconverter
Message:

Updated for PHP version 8.0. Tested with WordPress 5.6.

Location:
import-spreadsheets-from-microsoft-excel
Files:
38 added
3 edited

Legend:

Unmodified
Added
Removed
  • import-spreadsheets-from-microsoft-excel/trunk/changelog.txt

    r2025154 r2443245  
    11== Changelog ==
     2
     3= 10.1.1 =
     4* $row array issue fixes.
     5* zip file open/read issue fixed for PHP version 8.
     6* getting zip file name function changed.
    27
    38= 10.1 =
  • import-spreadsheets-from-microsoft-excel/trunk/import-spreadsheets-from-microsoft-excel.php

    r2025155 r2443245  
    55Plugin URI: https://www.spreadsheetconverter.com/support/online-help/help-wordpress-plugin-to-import-spreadsheets-from-microsoft-excel
    66Description: Import Spreadsheets from Microsoft Excel
    7 Version: 10.1
     7Version: 10.2
    88Author: SpreadsheetConverter
    99Author URI: http://www.spreadsheetconverter.com
     
    306306    $link = esc_url( get_post_meta( $post->ID,'wp_custom_attachment','true' ) );
    307307    $zipFileName = '';
    308     $row = '';
     308    $row = [];
    309309    if ( !empty( $link ) ) {
    310310
     
    491491           
    492492            if ( $x === true ) {
    493                 $zipall = zip_open( $target_path );
    494                 while ( ($zip_entry = zip_read($zipall)) ):
    495                     $pathall = zip_entry_name($zip_entry);
    496                  endwhile;
    497                    
     493                if (version_compare(phpversion(), '8.0.0', '<'))
     494                {
     495                    // version 5-7 code
     496                    $zipall = zip_open( $target_path );
     497                    while ( ($zip_entry = zip_read($zipall)) ):
     498                        $pathall = zip_entry_name($zip_entry);
     499                    endwhile;
     500                }
     501                else
     502                {
     503                    // version 8 code
     504                    for($i = 0; $i < $zip->numFiles; $i++)
     505                    { 
     506                       $pathall = $zip->getNameIndex( $i );
     507                    }
     508                }
     509
    498510                $pathall = explode("/", $pathall);
    499511                if ( $pathall[0] == $folder_name ) {
  • import-spreadsheets-from-microsoft-excel/trunk/readme.txt

    r2393119 r2443245  
    55Tags: excel, spreadsheet, xls, xlsx, embed, import, upload, form, calculator, viewer, chart, graph
    66Requires at least: 4.5
    7 Tested up to: 5.5.1
     7Tested up to: 5.6
    88Requires PHP: 5.2.4
    9 Stable tag: 10.1
     9Stable tag: 10.1.1
    1010
    1111Import live, calculating spreadsheets from Microsoft Excel to WordPress. The uploaded online spreadsheet is live, and looks and feels like in Excel.
     
    356356== Changelog ==
    357357
     358= 10.1.1 =
     359
     360* Added support for PHP 8.
     361
    358362= 10.1 =
    359363
Note: See TracChangeset for help on using the changeset viewer.