Changeset 2508832
- Timestamp:
- 04/04/2021 07:51:49 AM (5 years ago)
- Location:
- import-spreadsheets-from-microsoft-excel
- Files:
-
- 38 added
- 3 edited
-
tags/10.1.2 (added)
-
tags/10.1.2/changelog.txt (added)
-
tags/10.1.2/css (added)
-
tags/10.1.2/css/admin_plugin.css (added)
-
tags/10.1.2/css/custom_plugin.css (added)
-
tags/10.1.2/css/style_plugin.css (added)
-
tags/10.1.2/debug.txt (added)
-
tags/10.1.2/examples (added)
-
tags/10.1.2/examples/1-upload (added)
-
tags/10.1.2/examples/1-upload/weekly-time-card.zip (added)
-
tags/10.1.2/examples/2-update (added)
-
tags/10.1.2/examples/2-update/weekly-time-card.zip (added)
-
tags/10.1.2/icon (added)
-
tags/10.1.2/icon/add_shortcode.png (added)
-
tags/10.1.2/icon/delete_shortcode.png (added)
-
tags/10.1.2/icon/icon-apple.png (added)
-
tags/10.1.2/icon/icon-color-picker.png (added)
-
tags/10.1.2/icon/icon-color.png (added)
-
tags/10.1.2/icon/icon-css.png (added)
-
tags/10.1.2/icon/icon-facebook.png (added)
-
tags/10.1.2/icon/icon-flickr.png (added)
-
tags/10.1.2/icon/icon-general-setting.png (added)
-
tags/10.1.2/icon/icon-googleplus.png (added)
-
tags/10.1.2/icon/icon-instagram.png (added)
-
tags/10.1.2/icon/icon-linkedin.png (added)
-
tags/10.1.2/icon/icon-map.png (added)
-
tags/10.1.2/icon/icon-socialsites.png (added)
-
tags/10.1.2/icon/icon-tracking.png (added)
-
tags/10.1.2/icon/icon-twitter.png (added)
-
tags/10.1.2/icon/icon-vimeo.png (added)
-
tags/10.1.2/icon/icon-youtube.png (added)
-
tags/10.1.2/icon/minus.png (added)
-
tags/10.1.2/icon/plus.png (added)
-
tags/10.1.2/import-spreadsheets-from-microsoft-excel.php (added)
-
tags/10.1.2/js (added)
-
tags/10.1.2/js/admin_plugin.js (added)
-
tags/10.1.2/js/plugin-shortcode-manager-scripts.js (added)
-
tags/10.1.2/readme.txt (added)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/import-spreadsheets-from-microsoft-excel.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
import-spreadsheets-from-microsoft-excel/trunk/changelog.txt
r2443245 r2508832 1 1 == Changelog == 2 3 = 10.1.2 = 4 5 * Under very rare circumstances, WordPress would add one or more underscores to the name of a folder for uploaded content. When our code generated links to the folder, these underscores were not included, which caused the links to break. 2 6 3 7 = 10.1.1 = -
import-spreadsheets-from-microsoft-excel/trunk/import-spreadsheets-from-microsoft-excel.php
r2443247 r2508832 3 3 * 4 4 Plugin Name: Import Spreadsheets from Microsoft Excel 5 Plugin URI: https:// www.spreadsheetconverter.com/support/online-help/help-wordpress-plugin-to-import-spreadsheets-from-microsoft-excel5 Plugin URI: https://help.spreadsheetconverter.com/support/online-help/ssc-help-wordpress-plugin-to-import-spreadsheets-from-microsoft-excel/ 6 6 Description: Import Spreadsheets from Microsoft Excel 7 Version: 10.1. 17 Version: 10.1.2 8 8 Author: SpreadsheetConverter 9 Author URI: http ://www.spreadsheetconverter.com9 Author URI: https://www.spreadsheetconverter.com 10 10 Text Domain: SpreadsheetConverter 11 11 License: GPLv2 or later … … 16 16 * 17 17 18 Copyright (C) 2019-202 0SpreadsheetConverter, http://www.spreadsheetconverter.com18 Copyright (C) 2019-2021 SpreadsheetConverter, http://www.spreadsheetconverter.com 19 19 This program is free software: you can redistribute it and/or modify 20 20 it under the terms of the GNU General Public License as published by … … 228 228 endif; 229 229 230 $fileurl = esc_url( get_post_meta( $postid, 'wp_custom_attachment', true ));230 $fileurl = get_post_meta( $postid, 'wp_custom_attachment', true ); 231 231 $height = intval( get_post_meta( $postid, 'wp_custom_attachment_height', true ) ); 232 232 $width = intval( get_post_meta( $postid, 'wp_custom_attachment_width', true ) ); … … 468 468 // return $id; 469 469 // } 470 471 470 $folder_name = basename( sanitize_file_name( $_FILES['wp_custom_attachment']['name'] ),".zip" ); 472 471 … … 480 479 481 480 $source = $_FILES['wp_custom_attachment']['tmp_name']; 482 $target_path = $pub_dir."/". sanitize_file_name( $_FILES['wp_custom_attachment']['name'] );481 $target_path = $pub_dir."/".$folder_name.'.zip'; 483 482 484 483 // change this to the correct site path … … 519 518 520 519 } 520 521 521 // change this to the correct site path 522 522 $zip->extractTo( $pub_dir.'/'); 523 524 523 if ( true === $rename ){ 525 524 //rename folder to sanitize name 526 rename( $pub_dir .'/'. $pathall[0] , $pub_dir .'/'. sanitize_file_name( $pathall[0] ));525 rename( $pub_dir .'/'. $pathall[0] , $pub_dir .'/'. $folder_name ); 527 526 528 527 //reanme file to sanitize name 529 if( file_exists( $pub_dir .'/'. sanitize_file_name( $pathall[0] ).'/'. $pathall[0] . '.htm' ) ) {530 $oldname = $pub_dir .'/'. sanitize_file_name( $pathall[0] ).'/'. $pathall[0] . '.htm';531 $sanitize_name = $pub_dir .'/'. sanitize_file_name( $pathall[0] ) .'/'. sanitize_file_name( $pathall[0] ). '.htm';528 if( file_exists( $pub_dir .'/'. $folder_name .'/'. $pathall[0] . '.htm' ) ) { 529 $oldname = $pub_dir .'/'. $folder_name .'/'. $pathall[0] . '.htm'; 530 $sanitize_name = $pub_dir .'/'. $folder_name .'/'. $folder_name . '.htm'; 532 531 copy( $oldname , $sanitize_name ); 533 532 wp_delete_file( $oldname ); -
import-spreadsheets-from-microsoft-excel/trunk/readme.txt
r2505217 r2508832 7 7 Tested up to: 5.7 8 8 Requires PHP: 5.2.4 9 Stable tag: 10.1. 19 Stable tag: 10.1.2 10 10 11 11 Import live, calculating spreadsheets from Microsoft Excel to WordPress. The uploaded online spreadsheet is live, and looks and feels like in Excel. … … 357 357 == Changelog == 358 358 359 = 10.1.2 = 360 361 * Under very rare circumstances, WordPress would add one or more underscores to the name of a folder for uploaded content. When our code generated links to the folder, these underscores were not included, which caused the links to break. 362 359 363 = 10.1.1 = 360 364 361 * Added support for PHP 8. 365 * $row array issue fixes. 366 * zip file open/read issue fixed for PHP version 8. 367 * getting zip file name function changed. 362 368 363 369 = 10.1 =
Note: See TracChangeset
for help on using the changeset viewer.