Skip to content

Commit bde3f1c

Browse files
author
Eugene Manuilov
committed
Fixed issue with download_url function which not exists at front end
1 parent 1c3e268 commit bde3f1c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

classes/Visualizer/Source/Csv/Remote.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ protected function _get_file_handle( $filename = false ) {
151151
return parent::_get_file_handle( $filename );
152152
}
153153

154+
require_once ABSPATH . 'wp-admin/includes/file.php';
155+
154156
$this->_tmpfile = download_url( $this->_filename );
155157

156158
return !is_wp_error( $this->_tmpfile ) ? parent::_get_file_handle( $this->_tmpfile ) : false;

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Pay attention that to turn your shortcodes into graphs, your theme has to have `
5858

5959
== Changelog ==
6060

61+
= 1.4.2.1 =
62+
* Fixed issue with download_url function which not exists at front end
63+
6164
= 1.4.2 =
6265
* Fixed remote CSV uploading issue when allow_url_fopen option is disabled in php.ini
6366
* Replaced flattr image on widget and added donate link to plugin meta data

0 commit comments

Comments
 (0)