LLMS_Blocks_Assets::define_bc()

Define backwards compatibility assets


Return Return

(void)


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/class-llms-blocks-assets.php

111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
protected function define_bc() {
 
    if ( ! $this->use_bc_assets() ) {
        return;
    }
 
    $asset = include LLMS_BLOCKS_PLUGIN_DIR . '/assets/js/llms-blocks-backwards-compat.asset.php';
 
    $this->assets->define(
        'scripts',
        array(
            'llms-blocks-editor-bc' => array(
                'dependencies' => $asset['dependencies'],
                'file_name'    => 'llms-blocks-backwards-compat',
                'version'      => $asset['version'],
            ),
        )
    );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.