Skip to content

Commit

Permalink
Merge pull request #15 from brainstormforce/console-error
Browse files Browse the repository at this point in the history
Resolved console error and WordPress 5.6 compatibility
  • Loading branch information
vrundakansara authored Dec 14, 2020
2 parents f4100c6 + cc86d55 commit 8353ff0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
**Donate link:** https://www.paypal.me/BrainstormForce
**Requires at least:** 4.4
**Tags:** beaver builder, page builder timeline, bb timeline, timelines, drag and drop timeline, Timeline Module for Beaver Builder
**Stable tag:** 1.1.0
**Tested up to:** 5.5
**Stable tag:** 1.1.1
**Tested up to:** 5.6
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -90,6 +90,9 @@ Visit our website to know more about the top WordPress products and services we

## Changelog ##

### 1.1.1 ###
* Fix: Resolved JS error when Photo field is empty.

### 1.1.0 ###
* New: Beaver Themer support for field connections.

Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: brainstormforce
Donate link: https://www.paypal.me/BrainstormForce
Requires at least: 4.4
Tags: beaver builder, page builder timeline, bb timeline, timelines, drag and drop timeline, Timeline Module for Beaver Builder
Stable tag: 1.1.0
Tested up to: 5.5
Stable tag: 1.1.1
Tested up to: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -90,6 +90,9 @@ Visit our website to know more about the top WordPress products and services we

== Changelog ==

= 1.1.1 =
* Fix: Resolved JS error when Photo field is empty.

= 1.1.0 =
* New: Beaver Themer support for field connections.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ public function update( $settings ) {
if ( ! isset( $settings->photo_src ) ) {
$settings->photo_src = '';
}
$photo_id = '';
if ( isset( $settings->photo ) ) {
$photo_id = $settings->photo;
}
// Cache the attachment data.
$data = FLBuilderPhoto::get_attachment_data( $settings->photo );
$data = FLBuilderPhoto::get_attachment_data( $photo_id );

if ( $data ) {
$settings->data = $data;
Expand Down

0 comments on commit 8353ff0

Please sign in to comment.