PluginProbe
WP-Stateless – Google Cloud Storage / 2.2.7
WP-Stateless – Google Cloud Storage v2.2.7
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
wp-stateless / lib / classes / compatibility / divi.php

divi.php in WP-Stateless – Google Cloud Storage 2.2.7, at lib/classes/compatibility/divi.php

35 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Theme Name: Divi
4 * Theme URI: https://www.elegantthemes.com/gallery/divi/
5 *
6 * Compatibility Description: Ensures compatibility with Divi themes Builder Export addon.
7 * https://github.com/wpCloud/wp-stateless/issues/224
8 *
9 */
10
11 namespace wpCloud\StatelessMedia {
12
13 if(!class_exists('wpCloud\StatelessMedia\Divi')) {
14
15 class Divi extends ICompatibility {
16 protected $id = 'divi';
17 protected $title = 'Divi';
18 protected $constant = 'WP_STATELESS_COMPATIBILITY_DIVI';
19 protected $description = 'Ensures compatibility with Divi Builder Export.';
20 protected $theme_name = 'Divi';
21
22 public function module_init($sm){
23 // exclude randomize_filename from wpforms page
24 if(wp_doing_ajax() && !empty($_POST['et_core_portability_export']) && $_POST['et_core_portability_export'] == 'et_core_portability_export') {
25 remove_filter( 'sanitize_file_name', array( "wpCloud\StatelessMedia\Utility", 'randomize_filename' ), 10 );
26 }
27
28 }
29
30 }
31
32 }
33
34 }
35