Skip to content

Commit 756044a

Browse files
committed
Fix Tom Select asset paths in metabox and bump version to 4.2.3-beta2
1 parent f63f066 commit 756044a

3 files changed

Lines changed: 20 additions & 7 deletions

File tree

contextual-related-posts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Plugin Name: Contextual Related Posts
1616
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
1717
* Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates.
18-
* Version: 4.2.2
18+
* Version: 4.2.3-beta2
1919
* Author: WebberZone
2020
* Author URI: https://webberzone.com
2121
* License: GPL-2.0+
@@ -36,7 +36,7 @@
3636
* @since 2.9.3
3737
*/
3838
if ( ! defined( 'WZ_CRP_VERSION' ) ) {
39-
define( 'WZ_CRP_VERSION', '4.2.2' );
39+
define( 'WZ_CRP_VERSION', '4.2.3' );
4040
}
4141

4242

includes/admin/class-metabox.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public static function admin_enqueue_scripts() {
502502
if ( ! wp_style_is( 'wz-crp-tom-select', 'registered' ) ) {
503503
wp_register_style(
504504
'wz-crp-tom-select',
505-
plugins_url( 'settings/css/tom-select.min.css', __FILE__ ),
505+
WZ_CRP_PLUGIN_URL . 'includes/admin/settings/css/tom-select.min.css',
506506
array(),
507507
\WebberZone\Contextual_Related_Posts\Admin\Settings\Settings_API::VERSION
508508
);
@@ -511,7 +511,7 @@ public static function admin_enqueue_scripts() {
511511
if ( ! wp_script_is( 'wz-crp-tom-select', 'registered' ) ) {
512512
wp_register_script(
513513
'wz-crp-tom-select',
514-
plugins_url( 'settings/js/tom-select.complete.min.js', __FILE__ ),
514+
WZ_CRP_PLUGIN_URL . 'includes/admin/settings/js/tom-select.complete.min.js',
515515
array( 'jquery' ),
516516
\WebberZone\Contextual_Related_Posts\Admin\Settings\Settings_API::VERSION,
517517
true
@@ -521,7 +521,7 @@ public static function admin_enqueue_scripts() {
521521
if ( ! wp_script_is( 'wz-crp-tom-select-init', 'registered' ) ) {
522522
wp_register_script(
523523
'wz-crp-tom-select-init',
524-
plugins_url( "settings/js/tom-select-init{$file_prefix}.js", __FILE__ ),
524+
WZ_CRP_PLUGIN_URL . "includes/admin/settings/js/tom-select-init{$file_prefix}.js",
525525
array( 'jquery', 'wz-crp-tom-select' ),
526526
\WebberZone\Contextual_Related_Posts\Admin\Settings\Settings_API::VERSION,
527527
true

readme.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@ The plugin also handles SSL, resizing, and fallback mechanisms automatically for
193193

194194
== Changelog ==
195195

196+
= 4.2.3 =
197+
198+
* New features:
199+
* (Pro) Added ACF field support for thumbnails: specify an Advanced Custom Fields Image or Text field name in the thumbnail settings. Supports all ACF Image field return formats (Image Array, Image ID, Image URL) as well as plain Text fields containing a URL.
200+
201+
* Modifications:
202+
* The custom CSS will now always be available in the frontend when the field contains CSS.
203+
* Manual Related Posts lookup improved.
204+
205+
* Fixes:
206+
* Fixed Tom Select value extraction for multiselect fields which gave a JS error.
207+
196208
= 4.2.2 =
197209

198210
* Bug fixes:
@@ -248,5 +260,6 @@ For the changelog of earlier versions, please refer to the separate changelog.tx
248260

249261
== Upgrade Notice ==
250262

251-
= 4.2.2 =
252-
Bug and security fixes.
263+
= 4.2.3 =
264+
Pro: Added ACF field support for thumbnails.
265+
Modifications: Improved Manual Related Posts lookup.

0 commit comments

Comments
 (0)