We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3be35c commit d52a7e8Copy full SHA for d52a7e8
classes/Visualizer/Source/Csv/Remote.php
@@ -137,7 +137,7 @@ public function getSourceName() {
137
protected function _get_file_handle( $filename = false ) {
138
static $allow_url_fopen = null;
139
140
- if ( $this->_tmpfile && is_readable( $this->_tmpfile ) ) {
+ if ( ! is_wp_error( $this->_tmpfile ) && $this->_tmpfile && is_readable( $this->_tmpfile ) ) {
141
return parent::_get_file_handle( $this->_tmpfile );
142
}
143
0 commit comments