# wp-stateless/2.2.2/lib/classes/compatibility/divi.php

WP-Stateless – Google Cloud Storage, version 2.2.2. 34 lines.

- Page: https://pluginprobe.com/plugins/wp-stateless/2.2.2/code/lib/classes/compatibility/divi.php
- Raw: https://pluginprobe.com/plugins/wp-stateless/2.2.2/raw/lib/classes/compatibility/divi.php
- Modified: 2019-01-30T11:28:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-stateless/2.2.2/code/lib/classes/compatibility/divi.php#L10-L20`.

```php
<?php
/**
 * Theme Name: Divi
 * Theme URI: https://www.elegantthemes.com/gallery/divi/
 *
 * Compatibility Description: Ensures compatibility with Divi theme.
 *
 */

namespace wpCloud\StatelessMedia {

    if(!class_exists('wpCloud\StatelessMedia\Divi')) {
        
        class Divi extends ICompatibility {
            protected $id = 'divi';
            protected $title = 'Divi';
            protected $constant = 'WP_STATELESS_COMPATIBILITY_DIVI';
            protected $description = 'Ensures compatibility with Divi.';
            protected $theme_name = 'Divi';

            public function module_init($sm){
                // exclude randomize_filename from wpforms page
                if(wp_doing_ajax() && !empty($_POST['et_core_portability_export']) && $_POST['et_core_portability_export'] == 'et_core_portability_export') {
                    remove_filter( 'sanitize_file_name', array( "wpCloud\StatelessMedia\Utility", 'randomize_filename' ), 10 );
                }
                
            }

        }

    }

}

```
