| 1 |
<?php |
| 2 |
/** |
| 3 |
* Theme Name: Divi |
| 4 |
* Theme URI: https://www.elegantthemes.com/gallery/divi/ |
| 5 |
* |
| 6 |
* Compatibility Description: Ensures compatibility with Divi theme. |
| 7 |
* |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace wpCloud\StatelessMedia { |
| 11 |
|
| 12 |
if(!class_exists('wpCloud\StatelessMedia\Divi')) { |
| 13 |
|
| 14 |
class Divi extends ICompatibility { |
| 15 |
protected $id = 'divi'; |
| 16 |
protected $title = 'Divi'; |
| 17 |
protected $constant = 'WP_STATELESS_COMPATIBILITY_DIVI'; |
| 18 |
protected $description = 'Ensures compatibility with Divi.'; |
| 19 |
protected $theme_name = 'Divi'; |
| 20 |
|
| 21 |
public function module_init($sm){ |
| 22 |
// exclude randomize_filename from wpforms page |
| 23 |
if(wp_doing_ajax() && !empty($_POST['et_core_portability_export']) && $_POST['et_core_portability_export'] == 'et_core_portability_export') { |
| 24 |
remove_filter( 'sanitize_file_name', array( "wpCloud\StatelessMedia\Utility", 'randomize_filename' ), 10 ); |
| 25 |
} |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
} |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
} |
| 34 |
|