Skip to content

Commit 1e5823e

Browse files
committed
version 1.8.12 released
1 parent 4e27ce9 commit 1e5823e

8 files changed

Lines changed: 41 additions & 16 deletions

File tree

admin/class-cbxwpbookmark-admin.php

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,8 @@ public function plugin_upgrader_process_complete_partial(){
774774
* This notice shouldn't display to anyone who has just updated this plugin
775775
*/
776776
public function plugin_activate_upgrade_notices() {
777+
$activation_notice_shown = false;
778+
777779
// Check the transient to see if we've just activated the plugin
778780
if ( get_transient( 'cbxwpbookmark_activated_notice' ) ) {
779781
echo '<div style="border-left-color: #005ae0;" class="notice notice-success is-dismissible">';
@@ -789,22 +791,26 @@ public function plugin_activate_upgrade_notices() {
789791
delete_transient( 'cbxwpbookmark_activated_notice' );
790792

791793
$this->pro_addon_compatibility_campaign();
794+
795+
$activation_notice_shown = true;
792796
}
793797

794798
// Check the transient to see if we've just activated the plugin
795799
if ( get_transient( 'cbxwpbookmark_upgraded_notice' ) ) {
796-
echo '<div style="border-left-color: #005ae0;" class="notice notice-success is-dismissible">';
797-
/* translators: %s: bookmark core plugin version */
798-
echo '<p>' . sprintf( wp_kses( __( 'Thanks for upgrading <strong>CBX Bookmark</strong> V%s , enjoy the new features and bug fixes - Codeboxr Team', 'cbxwpbookmark' ), [ 'strong' => [] ] ), esc_attr( CBXWPBOOKMARK_PLUGIN_VERSION ) ) . '</p>'; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
800+
if(!$activation_notice_shown){
801+
echo '<div style="border-left-color: #005ae0;" class="notice notice-success is-dismissible">';
802+
/* translators: %s: bookmark core plugin version */
803+
echo '<p>' . sprintf( wp_kses( __( 'Thanks for upgrading <strong>CBX Bookmark</strong> V%s , enjoy the new features and bug fixes - Codeboxr Team', 'cbxwpbookmark' ), [ 'strong' => [] ] ), esc_attr( CBXWPBOOKMARK_PLUGIN_VERSION ) ) . '</p>'; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
799804

800-
/* translators: 1. Plugin setting url 2. Documentation link */
801-
echo '<p>' . sprintf( wp_kses( __( 'Check <a style="color:#005ae0 !important; font-weight: bold;" href="%1$s">Plugin Setting</a> | <a style="color:#005ae0 !important; font-weight: bold;" href="%2$s" target="_blank">Documentation</a>', 'cbxwpbookmark' ), [ 'a' => [ 'href' => [], 'style' => [], 'target' => [] ] ] ), esc_url( admin_url( 'admin.php?page=cbxwpbookmark_settings' ) ), 'https://codeboxr.com/product/cbx-wordpress-bookmark/' ) . '</p>';
802-
echo '</div>';
805+
/* translators: 1. Plugin setting url 2. Documentation link */
806+
echo '<p>' . sprintf( wp_kses( __( 'Check <a style="color:#005ae0 !important; font-weight: bold;" href="%1$s">Plugin Setting</a> | <a style="color:#005ae0 !important; font-weight: bold;" href="%2$s" target="_blank">Documentation</a>', 'cbxwpbookmark' ), [ 'a' => [ 'href' => [], 'style' => [], 'target' => [] ] ] ), esc_url( admin_url( 'admin.php?page=cbxwpbookmark_settings' ) ), 'https://codeboxr.com/product/cbx-wordpress-bookmark/' ) . '</p>';
807+
echo '</div>';
808+
809+
$this->pro_addon_compatibility_campaign();
810+
}
803811

804812
// Delete the transient so we don't keep displaying the activation message
805813
delete_transient( 'cbxwpbookmark_upgraded_notice' );
806-
807-
$this->pro_addon_compatibility_campaign();
808814
}
809815
}//end plugin_activate_upgrade_notices
810816

assets/css/cbxwpbookmark-public.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cbxwpbookmark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Plugin Name: CBX Bookmark & Favorite
1616
* Plugin URI: https://codeboxr.com/product/cbx-wordpress-bookmark
1717
* Description: List/category based bookmark for WordPress, create your own private or public list of favorite posts, page, custom object
18-
* Version: 1.8.11
18+
* Version: 1.8.12
1919
* Author: Codeboxr Team
2020
* Author URI: https://codeboxr.com
2121
* License: GPL-2.0+
@@ -31,7 +31,7 @@
3131

3232

3333
defined( 'CBXWPBOOKMARK_PLUGIN_NAME' ) or define( 'CBXWPBOOKMARK_PLUGIN_NAME', 'cbxwpbookmark' );
34-
defined( 'CBXWPBOOKMARK_PLUGIN_VERSION' ) or define( 'CBXWPBOOKMARK_PLUGIN_VERSION', '1.8.11' );
34+
defined( 'CBXWPBOOKMARK_PLUGIN_VERSION' ) or define( 'CBXWPBOOKMARK_PLUGIN_VERSION', '1.8.12' );
3535
defined( 'CBXWPBOOKMARK_BASE_NAME' ) or define( 'CBXWPBOOKMARK_BASE_NAME', plugin_basename( __FILE__ ) );
3636
defined( 'CBXWPBOOKMARK_ROOT_PATH' ) or define( 'CBXWPBOOKMARK_ROOT_PATH', plugin_dir_path( __FILE__ ) );
3737
defined( 'CBXWPBOOKMARK_ROOT_URL' ) or define( 'CBXWPBOOKMARK_ROOT_URL', plugin_dir_url( __FILE__ ) );

includes/cbxwpbookmark-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function cbxwpbookmarks_load_svg( $svg_name = '' ) {
389389

390390
$credentials = request_filesystem_credentials( site_url() . '/wp-admin/', '', false, false, null );
391391
if ( ! WP_Filesystem( $credentials ) ) {
392-
return; // Error handling here
392+
return ''; // Error handling here
393393
}
394394

395395
global $wp_filesystem;

includes/class-cbxwpbookmark-helper.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2978,6 +2978,13 @@ public static function cbxbookmark_create_page( $key = '', $slug = '', $page_tit
29782978
return $page_id;
29792979
}//end cbxbookmark_create_page
29802980

2981+
/**
2982+
* Get any plugin version number
2983+
*
2984+
* @param $plugin_slug
2985+
*
2986+
* @return mixed|string
2987+
*/
29812988
public static function get_any_plugin_version( $plugin_slug = '' ) {
29822989
if ( $plugin_slug == '' ) {
29832990
return '';

includes/class-cbxwpbookmark.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,8 @@ private function define_admin_hooks() {
181181
//plugin notices, active, upgrade, deactivation
182182
add_filter( 'plugin_action_links_' . CBXWPBOOKMARK_BASE_NAME, [ $plugin_admin, 'plugin_action_links' ] );
183183
add_filter( 'plugin_row_meta', [ $plugin_admin, 'plugin_row_meta' ], 10, 4 );
184-
//add_action( 'upgrader_process_complete', [ $plugin_admin, 'plugin_upgrader_process_complete' ], 10, 2 );
185-
add_action( 'plugins_loaded', [ $plugin_admin, 'plugin_upgrader_process_complete' ] );
186184

185+
add_action( 'plugins_loaded', [ $plugin_admin, 'plugin_upgrader_process_complete' ] );
187186
add_action( 'admin_notices', [ $plugin_admin, 'plugin_activate_upgrade_notices' ] );
188187
add_action( 'after_plugin_row_cbxwpbookmarkaddon/cbxwpbookmarkaddon.php', [ $plugin_admin, 'custom_message_after_plugin_row_proaddon' ], 10, 2 );
189188
add_action( 'after_plugin_row_cbxwpbookmarkmycred/cbxwpbookmarkmycred.php', [ $plugin_admin, 'custom_message_after_plugin_row_mycredaddon' ], 10, 2 );
@@ -242,7 +241,7 @@ private function define_public_hooks() {
242241
add_action( 'wp_ajax_cbx_delete_bookmark_post', [ $plugin_public, 'delete_bookmark_post' ] );
243242

244243

245-
//find all boomkark category by loggedin user ajax hook
244+
//find all bookmark category by loggedin user ajax hook
246245
add_action( 'wp_ajax_cbx_find_category', [ $plugin_public, 'find_category' ] );
247246

248247

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: codeboxr, manchumahara
33
Tags: bookmark,favorite,collection,user collection,user bookmark
44
Requires at least: 5.3
55
Tested up to: 6.7.1
6-
Stable tag: 1.8.11
6+
Stable tag: 1.8.12
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -169,6 +169,10 @@ How to install the plugin and get it working.
169169
== Screenshots ==
170170

171171
== Changelog ==
172+
= 1.8.12 =
173+
* [fixed] Style fixed for buddyboss theme
174+
* [updated] Update notification display logic improved
175+
172176
= 1.8.11 =
173177
* [improvement] Minor improvement
174178
* [new] Implemented WordPress Action based release. Github repo in sync https://github.com/codeboxrcodehub/cbxwpbookmark

templates/admin/dashboard.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@
165165
</div>
166166
</div>
167167
<div class="content">
168+
<div class="cbx-backend-settings-row">
169+
<p>
170+
Version - 1.8.12
171+
</p>
172+
<ul>
173+
<li>[fixed] Style fixed for buddyboss theme</li>
174+
<li>[updated] Update notification display logic improved</li>
175+
</ul>
176+
</div>
168177
<div class="cbx-backend-settings-row">
169178
<p>
170179
Version - 1.8.11

0 commit comments

Comments
 (0)