Changeset 3117170
- Timestamp:
- 07/12/2024 04:57:42 PM (20 months ago)
- Location:
- ad-commander-tools
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.2 (copied) (copied from ad-commander-tools/trunk)
-
tags/1.0.2/ad-commander-tools.php (modified) (2 diffs)
-
tags/1.0.2/includes/AdCommanderTools.php (modified) (1 diff)
-
tags/1.0.2/includes/ImportBundle.php (modified) (3 diffs)
-
tags/1.0.2/readme.txt (modified) (2 diffs)
-
trunk/ad-commander-tools.php (modified) (2 diffs)
-
trunk/includes/AdCommanderTools.php (modified) (1 diff)
-
trunk/includes/ImportBundle.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ad-commander-tools/tags/1.0.2/ad-commander-tools.php
r3116646 r3117170 5 5 * Description: Add-on for the Ad Commander plugin that allows you to import, export, and manage ad statistics. 6 6 * Requires Plugins: ad-commander 7 * Version: 1.0. 17 * Version: 1.0.2 8 8 * Author: Wild Operation 9 9 * Author URI: https://wildoperation.com … … 15 15 * @subpackage ad-commander-tools 16 16 * @since 1.0.0 17 * @version 1.0. 117 * @version 1.0.2 18 18 */ 19 19 -
ad-commander-tools/tags/1.0.2/includes/AdCommanderTools.php
r3116646 r3117170 12 12 */ 13 13 public static function version() { 14 return '1.0. 1';14 return '1.0.2'; 15 15 } 16 16 -
ad-commander-tools/tags/1.0.2/includes/ImportBundle.php
r3116646 r3117170 111 111 if ( ! $basename || 112 112 ! isset( $_REQUEST['adcmdr_import_bundle_options'] ) || 113 empty( $_REQUEST['adcmdr_import_bundle_options'] ) || 114 ( strtolower( $file_type['ext'] ) !== 'zip' && strtolower( $file_type['type'] ) !== 'application/zip' ) ) { 113 empty( $_REQUEST['adcmdr_import_bundle_options'] ) ) { 115 114 $this->cleanup_and_redirect( $import_nonce, $bundle_tmp ); 115 } 116 117 if ( ! $file_type || empty( $file_type ) || ( strtolower( $file_type['ext'] ) !== 'zip' && strtolower( $file_type['type'] ) !== 'application/zip' ) ) { 118 $parts = explode( '.', $bundle_name ); 119 if ( ! is_array( $parts ) || count( $parts ) < 2 || strtolower( $parts[1] ) !== 'zip' ) { 120 $this->cleanup_and_redirect( $import_nonce, $bundle_tmp ); 121 } 116 122 } 117 123 … … 238 244 * @param array $delete_files Files to delete. 239 245 * @param array $delete_dirs Directories to remove. 240 * @param bool $ failWhether this is a failure or success redirect.246 * @param bool $success Whether this is a failure or success redirect. 241 247 * 242 248 * @return void … … 244 250 private function cleanup_and_redirect( $nonce, $delete_files = array(), $delete_dirs = array(), $success = false ) { 245 251 global $wp_filesystem; 252 253 Filesystem::instance()->init_wp_filesystem(); 246 254 247 255 if ( ! is_array( $delete_files ) ) { -
ad-commander-tools/tags/1.0.2/readme.txt
r3116646 r3117170 4 4 Requires at least: 6.2 5 5 Tested up to: 6.6 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 26 26 27 27 == Changelog == 28 = 1.0.2 = 29 * Fixes WP multisite issue where some import bundles could not be opened 30 28 31 = 1.0.1 = 29 32 * Adds required plugin header -
ad-commander-tools/trunk/ad-commander-tools.php
r3116646 r3117170 5 5 * Description: Add-on for the Ad Commander plugin that allows you to import, export, and manage ad statistics. 6 6 * Requires Plugins: ad-commander 7 * Version: 1.0. 17 * Version: 1.0.2 8 8 * Author: Wild Operation 9 9 * Author URI: https://wildoperation.com … … 15 15 * @subpackage ad-commander-tools 16 16 * @since 1.0.0 17 * @version 1.0. 117 * @version 1.0.2 18 18 */ 19 19 -
ad-commander-tools/trunk/includes/AdCommanderTools.php
r3116646 r3117170 12 12 */ 13 13 public static function version() { 14 return '1.0. 1';14 return '1.0.2'; 15 15 } 16 16 -
ad-commander-tools/trunk/includes/ImportBundle.php
r3116646 r3117170 111 111 if ( ! $basename || 112 112 ! isset( $_REQUEST['adcmdr_import_bundle_options'] ) || 113 empty( $_REQUEST['adcmdr_import_bundle_options'] ) || 114 ( strtolower( $file_type['ext'] ) !== 'zip' && strtolower( $file_type['type'] ) !== 'application/zip' ) ) { 113 empty( $_REQUEST['adcmdr_import_bundle_options'] ) ) { 115 114 $this->cleanup_and_redirect( $import_nonce, $bundle_tmp ); 115 } 116 117 if ( ! $file_type || empty( $file_type ) || ( strtolower( $file_type['ext'] ) !== 'zip' && strtolower( $file_type['type'] ) !== 'application/zip' ) ) { 118 $parts = explode( '.', $bundle_name ); 119 if ( ! is_array( $parts ) || count( $parts ) < 2 || strtolower( $parts[1] ) !== 'zip' ) { 120 $this->cleanup_and_redirect( $import_nonce, $bundle_tmp ); 121 } 116 122 } 117 123 … … 238 244 * @param array $delete_files Files to delete. 239 245 * @param array $delete_dirs Directories to remove. 240 * @param bool $ failWhether this is a failure or success redirect.246 * @param bool $success Whether this is a failure or success redirect. 241 247 * 242 248 * @return void … … 244 250 private function cleanup_and_redirect( $nonce, $delete_files = array(), $delete_dirs = array(), $success = false ) { 245 251 global $wp_filesystem; 252 253 Filesystem::instance()->init_wp_filesystem(); 246 254 247 255 if ( ! is_array( $delete_files ) ) { -
ad-commander-tools/trunk/readme.txt
r3116646 r3117170 4 4 Requires at least: 6.2 5 5 Tested up to: 6.6 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 26 26 27 27 == Changelog == 28 = 1.0.2 = 29 * Fixes WP multisite issue where some import bundles could not be opened 30 28 31 = 1.0.1 = 29 32 * Adds required plugin header
Note: See TracChangeset
for help on using the changeset viewer.