updated plugin GP Premium version 1.11.2

This commit is contained in:
2020-08-13 14:53:39 +00:00
committed by Gitium
parent 3f0f8d3ac9
commit 885bbdd113
151 changed files with 11329 additions and 6954 deletions

View File

@ -1,4 +1,14 @@
<?php
/**
* This file handles Beaver Builder functionality during import.
*
* @package GP Premium
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // No direct access, please.
}
/**
* Search Beaver Builder content for images to download.
*
@ -47,9 +57,7 @@ class GeneratePress_Sites_Process_Beaver_Builder {
$data = get_post_meta( $post_id, '_fl_builder_data', true );
if ( ! empty( $data ) ) {
foreach ( $data as $key => $el ) {
// Import background images.
if ( 'row' === $el->type || 'column' === $el->type ) {
$data[ $key ]->settings = $this->import_background_images( $el->settings );
@ -59,7 +67,6 @@ class GeneratePress_Sites_Process_Beaver_Builder {
if ( 'module' === $el->type ) {
$data[ $key ]->settings = $this->import_module_images( $el->settings );
}
}
// Update page builder data.