updated plugin GP Premium
version 1.11.2
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user