From 33536bc21e14537ac6b47600deb0e768354f75e6 Mon Sep 17 00:00:00 2001 From: Akshay Raje Date: Fri, 21 May 2021 09:48:09 +0530 Subject: [PATCH 01/13] Required properties in after_theme_setup action --- .../properties/class-wordlift-property-getter-factory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/includes/properties/class-wordlift-property-getter-factory.php b/src/includes/properties/class-wordlift-property-getter-factory.php index 87d00e1215..1c67dc9ebb 100644 --- a/src/includes/properties/class-wordlift-property-getter-factory.php +++ b/src/includes/properties/class-wordlift-property-getter-factory.php @@ -63,7 +63,9 @@ public static function create( $entity_service ) { Wordlift_Schema_Service::FIELD_TOTAL_TIME, ) ); - $property_getter->register( new Wordlift_Required_Property_Service( $entity_service ), apply_filters( 'wl_required_property', array() ) ); + add_action( 'after_setup_theme', function () use ( $property_getter, $entity_service ) { + $property_getter->register( new Wordlift_Required_Property_Service( $entity_service ), apply_filters( 'wl_required_property', array() ) ); + } ); return $property_getter; } From 5c9f7cd8e924581fdce22eeca0ad36d5714a253d Mon Sep 17 00:00:00 2001 From: Akshay Raje Date: Fri, 21 May 2021 14:27:40 +0530 Subject: [PATCH 02/13] WL_CONFIG_WORDLIFT_API_URL_DEFAULT_VALUE in Default_Api_Service --- src/wordlift/vocabulary/class-vocabulary-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wordlift/vocabulary/class-vocabulary-loader.php b/src/wordlift/vocabulary/class-vocabulary-loader.php index aab912da7d..65da473d83 100644 --- a/src/wordlift/vocabulary/class-vocabulary-loader.php +++ b/src/wordlift/vocabulary/class-vocabulary-loader.php @@ -27,7 +27,7 @@ public function init_vocabulary() { $configuration_service = \Wordlift_Configuration_Service::get_instance(); $api_service = new Default_Api_Service( - apply_filters( 'wl_api_base_url', 'https://api.wordlift.io' ), + apply_filters( 'wl_api_base_url', WL_CONFIG_WORDLIFT_API_URL_DEFAULT_VALUE ), 60, User_Agent::get_user_agent(), $configuration_service->get_key() From 9812be9e0455373029668f8133e7f01571347580 Mon Sep 17 00:00:00 2001 From: naveen Date: Wed, 26 May 2021 16:58:46 +0530 Subject: [PATCH 03/13] Add space --- src/includes/class-wordlift-content-filter-service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/class-wordlift-content-filter-service.php b/src/includes/class-wordlift-content-filter-service.php index 2aaef42678..2b80b4c56f 100644 --- a/src/includes/class-wordlift-content-filter-service.php +++ b/src/includes/class-wordlift-content-filter-service.php @@ -242,7 +242,7 @@ private function link( $matches ) { $attributes = apply_filters( 'wl_anchor_data_attributes', $default_attributes, $post->ID ); $attributes_html = ''; foreach ( $attributes as $key => $value ) { - $attributes_html .= 'data-' . esc_html( $key ) . '="' . esc_attr( $value ) . '"'; + $attributes_html .= ' data-' . esc_html( $key ) . '="' . esc_attr( $value ) . '" '; } // Return the link. From ff1540003e3f81649d627d92d782b00762d8bb6f Mon Sep 17 00:00:00 2001 From: naveen Date: Thu, 27 May 2021 09:37:51 +0530 Subject: [PATCH 04/13] Fix tests --- tests/test-frontend-content-filter-service.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test-frontend-content-filter-service.php b/tests/test-frontend-content-filter-service.php index 4fa004178f..1c8df6d818 100644 --- a/tests/test-frontend-content-filter-service.php +++ b/tests/test-frontend-content-filter-service.php @@ -108,7 +108,7 @@ public function test_content_with_entity() { $content = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // The expected content with a link. - $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; + $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // Check that the expected content matches the function output. $this->assertNotNull( $this->content_filter_service ); @@ -121,7 +121,7 @@ public function test_content_with_entity() { $content = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // The expected content with a link. - $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; + $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // Check that the expected content matches the function output. $this->assertEquals( $expected, $this->content_filter_service->the_content( $content ) ); @@ -293,7 +293,7 @@ public function test_entity_default_no_link_entity_link() { $content = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // The expected content with a link. - $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; + $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // Check that the expected content matches the function output. $this->assertEquals( $expected, $this->content_filter_service->the_content( $content ) ); @@ -316,7 +316,7 @@ public function test_entity_default_link_entity_link() { $content = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // The expected content with a link. - $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; + $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // Check that the expected content matches the function output. $this->assertEquals( $expected, $this->content_filter_service->the_content( $content ) ); @@ -339,7 +339,7 @@ public function test_entity_default_link_entity_not_specified() { $content = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // The expected content with a link. - $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; + $expected = 'Matt Mullenweg would love to see what we\'re achieving with WordLift for WordPress!'; // Check that the expected content matches the function output. $this->assertEquals( $expected, $this->content_filter_service->the_content( $content ) ); From 6eaae30b584700cfe2f1d727ae3f9bad77892f48 Mon Sep 17 00:00:00 2001 From: naveen Date: Mon, 31 May 2021 16:39:02 +0530 Subject: [PATCH 05/13] see #1382: switching to fetch api --- .../pages/assets/videoobject-import-page.js | 75 ++++++++++--------- 1 file changed, 38 insertions(+), 37 deletions(-) diff --git a/src/wordlift/videoobject/pages/assets/videoobject-import-page.js b/src/wordlift/videoobject/pages/assets/videoobject-import-page.js index b694dc6946..60079980c3 100644 --- a/src/wordlift/videoobject/pages/assets/videoobject-import-page.js +++ b/src/wordlift/videoobject/pages/assets/videoobject-import-page.js @@ -1,47 +1,48 @@ window.addEventListener("load", function () { - const startBtn = document.getElementById("wl-start-btn"); - const stopBtn = document.getElementById("wl-stop-btn"); + const startBtn = document.getElementById("wl-start-btn"); + const stopBtn = document.getElementById("wl-stop-btn"); - const updateProgressBar = function () { - wp.apiRequest({ path: "wordlift/v1/videos/background/get_state", method: "POST" }).success( - (data) => { - let percentage = (data.index * 100.0) / data.count; - if ( percentage > 100 ) { - percentage = 100 - } - document.querySelector(".wl-task__progress__bar").style.width = - percentage + "%"; + const updateProgressBar = function () { + fetch("wordlift/v1/videos/background/get_state", {method: "POST"}) + .then(response => response.json()) + .then((data) => { + let percentage = (data.index * 100.0) / data.count; + if (percentage > 100) { + percentage = 100 + } + document.querySelector(".wl-task__progress__bar").style.width = + percentage + "%"; - if ("started" === data.state) { - if (!startBtn.classList.contains("hidden")) - startBtn.classList.add("hidden"); - if (stopBtn.classList.contains("hidden")) - stopBtn.classList.remove("hidden"); - } else { - if (startBtn.classList.contains("hidden")) - startBtn.classList.remove("hidden"); - if (!stopBtn.classList.contains("hidden")) - stopBtn.classList.add("hidden"); - } + if ("started" === data.state) { + if (!startBtn.classList.contains("hidden")) + startBtn.classList.add("hidden"); + if (stopBtn.classList.contains("hidden")) + stopBtn.classList.remove("hidden"); + } else { + if (startBtn.classList.contains("hidden")) + startBtn.classList.remove("hidden"); + if (!stopBtn.classList.contains("hidden")) + stopBtn.classList.add("hidden"); + } - setTimeout(updateProgressBar, 1000); - } - ); - }; + setTimeout(updateProgressBar, 1000); + } + ); + }; - setTimeout(updateProgressBar, 1000); + setTimeout(updateProgressBar, 1000); - startBtn.addEventListener("click", function () { - wp.apiRequest({ - method: "POST", - path: "wordlift/v1/videos/background/start", + startBtn.addEventListener("click", function () { + fetch("wordlift/v1/videos/background/start", { + method: "POST" + }).then(() => { + }); }); - }); - stopBtn.addEventListener("click", function () { - wp.apiRequest({ - method: "POST", - path: "wordlift/v1/videos/background/stop", + stopBtn.addEventListener("click", function () { + fetch("wordlift/v1/videos/background/stop", { + method: "POST" + }).then(() => { + }); }); - }); }); From fa09996b1c9f6533f0e3b54f5e6c9956b8ee47b3 Mon Sep 17 00:00:00 2001 From: naveen Date: Mon, 31 May 2021 16:47:50 +0530 Subject: [PATCH 06/13] see #1382: fix import --- .../videoobject/pages/assets/videoobject-import-page.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wordlift/videoobject/pages/assets/videoobject-import-page.js b/src/wordlift/videoobject/pages/assets/videoobject-import-page.js index 60079980c3..18bafc4ac2 100644 --- a/src/wordlift/videoobject/pages/assets/videoobject-import-page.js +++ b/src/wordlift/videoobject/pages/assets/videoobject-import-page.js @@ -26,8 +26,7 @@ window.addEventListener("load", function () { } setTimeout(updateProgressBar, 1000); - } - ); + }); }; setTimeout(updateProgressBar, 1000); From 4b5a42061c200fcaf2881f429b18f844bc3d2d85 Mon Sep 17 00:00:00 2001 From: naveen Date: Mon, 31 May 2021 17:01:12 +0530 Subject: [PATCH 07/13] see #1382: fix import --- .../pages/assets/videoobject-import-page.js | 56 +++++++++++-------- .../pages/class-import-videos-page.php | 24 ++++---- 2 files changed, 43 insertions(+), 37 deletions(-) diff --git a/src/wordlift/videoobject/pages/assets/videoobject-import-page.js b/src/wordlift/videoobject/pages/assets/videoobject-import-page.js index 18bafc4ac2..b88d4d8650 100644 --- a/src/wordlift/videoobject/pages/assets/videoobject-import-page.js +++ b/src/wordlift/videoobject/pages/assets/videoobject-import-page.js @@ -1,46 +1,54 @@ window.addEventListener("load", function () { const startBtn = document.getElementById("wl-start-btn"); const stopBtn = document.getElementById("wl-stop-btn"); + const {restUrl, nonce} = _wlVideoObjectImportSettings const updateProgressBar = function () { - fetch("wordlift/v1/videos/background/get_state", {method: "POST"}) + fetch(restUrl + "wordlift/v1/videos/background/get_state", { + method: "POST", + headers: {"X-WP-Nonce": nonce } + }) .then(response => response.json()) + .catch(() => { + }) .then((data) => { - let percentage = (data.index * 100.0) / data.count; - if (percentage > 100) { - percentage = 100 - } - document.querySelector(".wl-task__progress__bar").style.width = - percentage + "%"; + let percentage = (data.index * 100.0) / data.count; + if (percentage > 100) { + percentage = 100 + } + document.querySelector(".wl-task__progress__bar").style.width = + percentage + "%"; - if ("started" === data.state) { - if (!startBtn.classList.contains("hidden")) - startBtn.classList.add("hidden"); - if (stopBtn.classList.contains("hidden")) - stopBtn.classList.remove("hidden"); - } else { - if (startBtn.classList.contains("hidden")) - startBtn.classList.remove("hidden"); - if (!stopBtn.classList.contains("hidden")) - stopBtn.classList.add("hidden"); - } + if ("started" === data.state) { + if (!startBtn.classList.contains("hidden")) + startBtn.classList.add("hidden"); + if (stopBtn.classList.contains("hidden")) + stopBtn.classList.remove("hidden"); + } else { + if (startBtn.classList.contains("hidden")) + startBtn.classList.remove("hidden"); + if (!stopBtn.classList.contains("hidden")) + stopBtn.classList.add("hidden"); + } - setTimeout(updateProgressBar, 1000); - }); + setTimeout(updateProgressBar, 1000); + }); }; setTimeout(updateProgressBar, 1000); startBtn.addEventListener("click", function () { - fetch("wordlift/v1/videos/background/start", { - method: "POST" + fetch(restUrl + "wordlift/v1/videos/background/start", { + method: "POST", + headers: {"X-WP-Nonce": nonce } }).then(() => { }); }); stopBtn.addEventListener("click", function () { - fetch("wordlift/v1/videos/background/stop", { - method: "POST" + fetch(restUrl + "wordlift/v1/videos/background/stop", { + method: "POST", + headers: {"X-WP-Nonce": nonce } }).then(() => { }); }); diff --git a/src/wordlift/videoobject/pages/class-import-videos-page.php b/src/wordlift/videoobject/pages/class-import-videos-page.php index 35872da84e..857a963ee1 100644 --- a/src/wordlift/videoobject/pages/class-import-videos-page.php +++ b/src/wordlift/videoobject/pages/class-import-videos-page.php @@ -16,28 +16,26 @@ public function __construct() { public function admin_menu() { add_submenu_page( 'wl_admin_menu', - __( 'Import all videos', 'wordlift' ), - __( 'Import all videos', 'wordlift' ), - 'manage_options', 'wl_videos_import', array( - $this, - 'render' - ) ); + __( 'Import all videos', 'wordlift' ), + __( 'Import all videos', 'wordlift' ), + 'manage_options', 'wl_videos_import', array( + $this, + 'render' + ) ); } public function render() { - wp_enqueue_style( - 'wl-tasks-page', - plugin_dir_url( dirname( __FILE__ ) ) . 'tasks/admin/assets/tasks-page.css', - array(), - \Wordlift::get_instance()->get_version(), - 'all' ); wp_enqueue_script( - 'wl-dataset-sync-page', + 'wl-videos-sync-page', plugin_dir_url( __FILE__ ) . 'assets/videoobject-import-page.js', array( 'wp-api' ), \Wordlift::get_instance()->get_version() ); + wp_localize_script( 'wl-videos-sync-page', '_wlVideoObjectImportSettings', array( + 'restUrl' => get_rest_url(), + 'nonce' => wp_create_nonce( 'wp_rest' ) + ) ) ?>
From 7aa3caf0d65f9efcac4924413bff52131d90e956 Mon Sep 17 00:00:00 2001 From: naveen Date: Tue, 1 Jun 2021 11:23:24 +0530 Subject: [PATCH 08/13] see #1384: decode html entity --- src/shortcodes/wordlift_shortcode_faceted_search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shortcodes/wordlift_shortcode_faceted_search.php b/src/shortcodes/wordlift_shortcode_faceted_search.php index 5caa747a38..cc80354665 100644 --- a/src/shortcodes/wordlift_shortcode_faceted_search.php +++ b/src/shortcodes/wordlift_shortcode_faceted_search.php @@ -227,7 +227,7 @@ function wl_shortcode_faceted_search_origin( $request ) { if ( ( null !== $entity ) && ( 'publish' === $entity->post_status ) ) { $serialized_entity = wl_serialize_entity( $entity ); - $serialized_entity['label'] = wl_shortcode_faceted_search_get_the_title( $obj->ID ); + $serialized_entity['label'] = html_entity_decode( wl_shortcode_faceted_search_get_the_title( $obj->ID ), ENT_QUOTES, 'UTF-8' ); $serialized_entity['counter'] = $obj->counter; $serialized_entity['createdAt'] = $entity->post_date; $serialized_entity['referencedPosts'] = Wordlift_Relation_Service::get_instance()->get_article_subjects( @@ -249,6 +249,7 @@ function wl_shortcode_faceted_search_origin( $request ) { // Add srcset attribute. $post_results = array_map( function ( $post ) { $post->srcset = Srcset_Util::get_srcset( $post->ID, Srcset_Util::FACETED_SEARCH_WIDGET ); + return $post; }, $post_results ); From 92ea44de4d7b7565b0ba52311f6670c7c791975d Mon Sep 17 00:00:00 2001 From: Akshay Raje Date: Tue, 1 Jun 2021 12:16:22 +0530 Subject: [PATCH 09/13] Release preparation --- package.json | 2 +- src-js/webpack/package.json | 2 +- src/includes/class-wordlift.php | 2 +- src/readme.txt | 12 ++++++++++-- src/wordlift.php | 2 +- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 3a79641471..690a0dfc1c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "wordlift-plugin", "description": "WordLift brings the power of Artificial Intelligence to organize content. Attract new readers and get their true attention with top notch semantic seo.", "private": true, - "version": "3.31.3", + "version": "3.31.4", "author": "WordLift", "homepage": "https://wordift.io/", "license": "GPL-3.0", diff --git a/src-js/webpack/package.json b/src-js/webpack/package.json index 66bdc88f76..56e68c0aa9 100644 --- a/src-js/webpack/package.json +++ b/src-js/webpack/package.json @@ -1,6 +1,6 @@ { "name": "wordlift-plugin", - "version": "3.31.3", + "version": "3.31.4", "description": "WordLift Plugin application for the web site public front-end.", "main": "index.js", "repository": "https://github.com/insideout10/wordlift-plugin", diff --git a/src/includes/class-wordlift.php b/src/includes/class-wordlift.php index 36587fa027..89c8f7e25c 100644 --- a/src/includes/class-wordlift.php +++ b/src/includes/class-wordlift.php @@ -766,7 +766,7 @@ public function __construct() { self::$instance = $this; $this->plugin_name = 'wordlift'; - $this->version = '3.31.3'; + $this->version = '3.31.4'; $this->load_dependencies(); $this->set_locale(); $this->define_admin_hooks(); diff --git a/src/readme.txt b/src/readme.txt index f35e46bff1..6ac51d755c 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -142,11 +142,19 @@ You can open your datasets to the public, attaching to it a free or a commercial == Changelog == -= 3.31.3 (2021-04-19) = += 3.31.4 (2021-06-01) = + +* Fix [#1384](https://github.com/insideout10/wordlift-plugin/issues/1384): HTML entities encoded in faceted search title +* Fix [#1382](https://github.com/insideout10/wordlift-plugin/issues/1382): Bulk import of videoobject issue in 4.7.0 +* Fix: a11y error : no space between attributes +* Fix: Vocabulary endpoint to use `WL_CONFIG_WORDLIFT_API_URL_DEFAULT_VALUE` constant +* Fix: Trigger `wl_required_property` filter in `after_setup_theme` action + += 3.31.3 (2021-05-19) = * Fix: wl-video-sitemap.xml has a 404 http code -= 3.31.2 (2021-04-18) = += 3.31.2 (2021-05-18) = * Enhancement [#1368](https://github.com/insideout10/wordlift-plugin/issues/1368): Add the matched entity markup to the term page diff --git a/src/wordlift.php b/src/wordlift.php index dead70b62a..24c7f06543 100644 --- a/src/wordlift.php +++ b/src/wordlift.php @@ -15,7 +15,7 @@ * Plugin Name: WordLift * Plugin URI: https://wordlift.io * Description: WordLift brings the power of AI to organize content, attract new readers and get their attention. To activate the plugin visit our website. - * Version: 3.31.3 + * Version: 3.31.4 * Author: WordLift, Insideout10 * Author URI: https://wordlift.io * License: GPL-2.0+ From c14de5d5b2cef4f9d3502fb1a75290b5aa7c1e6d Mon Sep 17 00:00:00 2001 From: naveen Date: Tue, 1 Jun 2021 14:14:03 +0530 Subject: [PATCH 10/13] Add filters for external plugins --- .../class-videos-data-source.php | 17 +++++++++++++++-- .../videoobject/class-video-processor.php | 10 ++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/wordlift/videoobject/background-process/class-videos-data-source.php b/src/wordlift/videoobject/background-process/class-videos-data-source.php index d72af9e125..39a2e7aecf 100644 --- a/src/wordlift/videoobject/background-process/class-videos-data-source.php +++ b/src/wordlift/videoobject/background-process/class-videos-data-source.php @@ -17,13 +17,20 @@ public function __construct( $state_storage_key ) { } public function next() { - $this->log->debug("Received video data source index as " . $this->get_state()->index); - $this->log->debug("Count set to " . $this->get_batch_size() ); + $this->log->debug( "Received video data source index as " . $this->get_state()->index ); + $this->log->debug( "Count set to " . $this->get_batch_size() ); + return get_posts( array( 'fields' => 'ids', 'post_status' => 'any', 'numberposts' => $this->get_batch_size(), 'offset' => $this->get_state()->index, + /** + * @since 3.31.4 + * Filter name : wordlift_videoobject_procedure_post_types + * @return array An array of supported post types for the video import procedure. + */ + 'post_type' => apply_filters( 'wordlift_videoobject_procedure_post_types', array( 'post' ) ) ) ); } @@ -32,6 +39,12 @@ public function count() { 'fields' => 'ids', 'numberposts' => - 1, 'post_status' => 'any', + /** + * @since 3.31.4 + * Filter name : wordlift_videoobject_procedure_post_types + * @return array An array of supported post types for the video import procedure. + */ + 'post_type' => apply_filters( 'wordlift_videoobject_procedure_post_types', array( 'post' ) ) ) ) ); } diff --git a/src/wordlift/videoobject/class-video-processor.php b/src/wordlift/videoobject/class-video-processor.php index f28f5dc7f9..72c897aa2b 100644 --- a/src/wordlift/videoobject/class-video-processor.php +++ b/src/wordlift/videoobject/class-video-processor.php @@ -73,6 +73,16 @@ public function process_video_urls( \WP_Post $post, $post_id ) { $embedded_videos = $parser->get_videos( $post_id ); + /** + * Filters the embeeded videos on post contet, custom plugins can add their video urls + * by constructing \Default_Embedded_Video or implement Embedded_Video class + * @since 3.31.4 + * Filter name : wordlift_videoobject_embedded_videos + * @param $embedded_videos array + * @return array + */ + $embedded_videos = apply_filters('wordlift_videoobject_embedded_videos', $embedded_videos); + $storage = Video_Storage_Factory::get_storage(); // Before sending api requests we need to check if there are any videos in From 8cfcb8bf7d0bd2bc9e1ecc4bc5dafb8cc4986cee Mon Sep 17 00:00:00 2001 From: naveen Date: Tue, 1 Jun 2021 14:19:30 +0530 Subject: [PATCH 11/13] Rename filters --- .../background-process/class-videos-data-source.php | 8 ++++---- src/wordlift/videoobject/class-video-processor.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wordlift/videoobject/background-process/class-videos-data-source.php b/src/wordlift/videoobject/background-process/class-videos-data-source.php index 39a2e7aecf..ec92328f1c 100644 --- a/src/wordlift/videoobject/background-process/class-videos-data-source.php +++ b/src/wordlift/videoobject/background-process/class-videos-data-source.php @@ -27,10 +27,10 @@ public function next() { 'offset' => $this->get_state()->index, /** * @since 3.31.4 - * Filter name : wordlift_videoobject_procedure_post_types + * Filter name : wl_videoobject_procedure_post_types * @return array An array of supported post types for the video import procedure. */ - 'post_type' => apply_filters( 'wordlift_videoobject_procedure_post_types', array( 'post' ) ) + 'post_type' => apply_filters( 'wl_videoobject_procedure_post_types', array( 'post' ) ) ) ); } @@ -41,10 +41,10 @@ public function count() { 'post_status' => 'any', /** * @since 3.31.4 - * Filter name : wordlift_videoobject_procedure_post_types + * Filter name : wl_videoobject_procedure_post_types * @return array An array of supported post types for the video import procedure. */ - 'post_type' => apply_filters( 'wordlift_videoobject_procedure_post_types', array( 'post' ) ) + 'post_type' => apply_filters( 'wl_videoobject_procedure_post_types', array( 'post' ) ) ) ) ); } diff --git a/src/wordlift/videoobject/class-video-processor.php b/src/wordlift/videoobject/class-video-processor.php index 72c897aa2b..3ede14c0b4 100644 --- a/src/wordlift/videoobject/class-video-processor.php +++ b/src/wordlift/videoobject/class-video-processor.php @@ -77,11 +77,11 @@ public function process_video_urls( \WP_Post $post, $post_id ) { * Filters the embeeded videos on post contet, custom plugins can add their video urls * by constructing \Default_Embedded_Video or implement Embedded_Video class * @since 3.31.4 - * Filter name : wordlift_videoobject_embedded_videos + * Filter name : wl_videoobject_embedded_videos * @param $embedded_videos array * @return array */ - $embedded_videos = apply_filters('wordlift_videoobject_embedded_videos', $embedded_videos); + $embedded_videos = apply_filters('wl_videoobject_embedded_videos', $embedded_videos); $storage = Video_Storage_Factory::get_storage(); From 2b1f9ccb4cdbcb7c70fad6ccaa75556cc3a6f152 Mon Sep 17 00:00:00 2001 From: naveen Date: Tue, 1 Jun 2021 14:23:56 +0530 Subject: [PATCH 12/13] typo fix --- src/wordlift/videoobject/class-video-processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wordlift/videoobject/class-video-processor.php b/src/wordlift/videoobject/class-video-processor.php index 3ede14c0b4..b998f393cb 100644 --- a/src/wordlift/videoobject/class-video-processor.php +++ b/src/wordlift/videoobject/class-video-processor.php @@ -74,7 +74,7 @@ public function process_video_urls( \WP_Post $post, $post_id ) { $embedded_videos = $parser->get_videos( $post_id ); /** - * Filters the embeeded videos on post contet, custom plugins can add their video urls + * Filters the embedded videos on post contet, custom plugins can add their video urls * by constructing \Default_Embedded_Video or implement Embedded_Video class * @since 3.31.4 * Filter name : wl_videoobject_embedded_videos From c3703909d64663236dde98a4a67e2d6b7ccc0bbb Mon Sep 17 00:00:00 2001 From: Akshay Raje Date: Tue, 1 Jun 2021 16:17:30 +0530 Subject: [PATCH 13/13] Release preparation --- src/readme.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/readme.txt b/src/readme.txt index 6ac51d755c..43fbe65f93 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -144,6 +144,8 @@ You can open your datasets to the public, attaching to it a free or a commercial = 3.31.4 (2021-06-01) = +* Enhancement: Added `wl_videoobject_procedure_post_types` and `wl_videoobject_embedded_videos` filters + * Fix [#1384](https://github.com/insideout10/wordlift-plugin/issues/1384): HTML entities encoded in faceted search title * Fix [#1382](https://github.com/insideout10/wordlift-plugin/issues/1382): Bulk import of videoobject issue in 4.7.0 * Fix: a11y error : no space between attributes