From a46956c96e1ee9315c4de1778f374eaabadbf45a Mon Sep 17 00:00:00 2001 From: claimableperch Date: Tue, 23 Apr 2024 15:59:19 +0100 Subject: [PATCH 1/2] chore(update-version): to 2.8.6 --- brightcove-video-connect.php | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 8 +++++++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/brightcove-video-connect.php b/brightcove-video-connect.php index 428a0946..9e397a6f 100644 --- a/brightcove-video-connect.php +++ b/brightcove-video-connect.php @@ -10,7 +10,7 @@ * Plugin Name: Brightcove Video Connect * Plugin URI: https://wordpress.org/plugins/brightcove-video-connect/ * Description: A Brightcoveâ„¢ Connector for WordPress that leverages enhanced APIs and Brightcoveâ„¢ Capabilities - * Version: 2.8.5 + * Version: 2.8.6 * Requires at least: 4.2 * Requires PHP: * Author: Brightcove @@ -39,7 +39,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 021.0.2301 USA */ -define( 'BRIGHTCOVE_VERSION', '2.8.5' ); +define( 'BRIGHTCOVE_VERSION', '2.8.6' ); define( 'BRIGHTCOVE_URL', plugin_dir_url( __FILE__ ) ); define( 'BRIGHTCOVE_PATH', dirname( __FILE__ ) . '/' ); define( 'BRIGHTCOVE_BASENAME', plugin_basename( __FILE__ ) ); diff --git a/package-lock.json b/package-lock.json index f22c1111..cd48b12d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "brightcove-video-connect", - "version": "2.8.5", + "version": "2.8.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "brightcove-video-connect", - "version": "2.8.5", + "version": "2.8.6", "devDependencies": { "@10up/cypress-wp-utils": "github:10up/cypress-wp-utils#build", "@10up/eslint-config": "^2.3.5", diff --git a/package.json b/package.json index 6d2be547..76fd905e 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "title": "brightcove-video-connect", "description": "A Brightcove plugin for WordPress.", - "version": "2.8.5", + "version": "2.8.6", "homepage": "https://wordpress.org/plugins/brightcove-video-connect/", "author": { "name": "Brightcove", diff --git a/readme.txt b/readme.txt index a03db5ea..8cc7baf3 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: brightcove, 10up, oscarssanchez, collinsinternet, ivankk, tec Donate link: https://supporters.eff.org/donate Tags: brightcove, videos, video Tested up to: 6.5 -Stable tag: 2.8.5 +Stable tag: 2.8.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -39,6 +39,12 @@ For installation, usage, and Frequently Asked Question please see the [Brightcov == Changelog == += 2.8.6 = + +__Fixed:__ + +* Block recovery would show the first time a video block was added in Gutenberg. + = 2.8.5 - 2023-04-22 = __Changed:__ From 38b9661607e5554a9db8daebfcd4326210a71040 Mon Sep 17 00:00:00 2001 From: claimableperch Date: Tue, 23 Apr 2024 16:55:46 +0100 Subject: [PATCH 2/2] fix(attribute-name-bug): fix typo --- assets/js/src/block.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/src/block.js b/assets/js/src/block.js index a2686624..dbeafc74 100644 --- a/assets/js/src/block.js +++ b/assets/js/src/block.js @@ -43,7 +43,7 @@ var autoplay = props.attributes.autoplay || ''; var playsinline = props.attributes.playsinline || ''; var pictureinpicture = props.attributes.picture_in_picture || ''; - var languageDetection = props.attributes.language_detection || ''; + var language_detection = props.attributes.language_detection || ''; var applicationId = props.attributes.application_id || ''; var embed = props.attributes.embed || ''; var mute = props.attributes.mute || ''; @@ -204,7 +204,7 @@ mute: '', playsinline: '', picture_in_picture: '', - languageDetection: '', + language_detection: '', embed: attrs.named.embed, sizing: attrs.named.sizing, aspect_ratio: attrs.named.aspect_ratio, @@ -546,7 +546,7 @@ !isExperience && el(components.CheckboxControl, { label: __('Enable Language Detection', 'brightcove'), - checked: languageDetection, + checked: language_detection, onChange: function (value) { props.setAttributes({ ...props.attributes, @@ -554,7 +554,7 @@ }); }, }), - languageDetection === 'languagedetection' || + language_detection === 'languagedetection' || pictureinpicture === 'pictureinpicture' ? el( components.Disabled,