PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.8
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.8
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
← All changes | classes/Visualizer/Module/Chart.php +4 -0 3.10.13.10.8 View file →
@@ -1586,8 +1586,12 @@
1586 1586 // Save the image in the uploads directory.
1587 1587 require_once ABSPATH . '/wp-admin/includes/file.php';
1588 1588 \WP_Filesystem();
1589 1589 global $wp_filesystem;
1590 + if ( ! is_a( $wp_filesystem, 'WP_Filesystem_Base' ) ) {
1591 + $creds = request_filesystem_credentials( site_url() );
1592 + wp_filesystem( $creds );
1593 + }
1590 1594 $upload_file = $wp_filesystem->put_contents( $upload_path . $hashed_filename, $decoded );
1591 1595
1592 1596 // Insert new chart image.
1593 1597 $attachment = array(