Skip to content

Commit

Permalink
version 1.8.12 released
Browse files Browse the repository at this point in the history
  • Loading branch information
manchumahara committed Jan 3, 2025
1 parent 4e27ce9 commit 1e5823e
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 16 deletions.
22 changes: 14 additions & 8 deletions admin/class-cbxwpbookmark-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,8 @@ public function plugin_upgrader_process_complete_partial(){
* This notice shouldn't display to anyone who has just updated this plugin
*/
public function plugin_activate_upgrade_notices() {
$activation_notice_shown = false;

// Check the transient to see if we've just activated the plugin
if ( get_transient( 'cbxwpbookmark_activated_notice' ) ) {
echo '<div style="border-left-color: #005ae0;" class="notice notice-success is-dismissible">';
Expand All @@ -789,22 +791,26 @@ public function plugin_activate_upgrade_notices() {
delete_transient( 'cbxwpbookmark_activated_notice' );

$this->pro_addon_compatibility_campaign();

$activation_notice_shown = true;
}

// Check the transient to see if we've just activated the plugin
if ( get_transient( 'cbxwpbookmark_upgraded_notice' ) ) {
echo '<div style="border-left-color: #005ae0;" class="notice notice-success is-dismissible">';
/* translators: %s: bookmark core plugin version */
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
if(!$activation_notice_shown){
echo '<div style="border-left-color: #005ae0;" class="notice notice-success is-dismissible">';
/* translators: %s: bookmark core plugin version */
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

/* translators: 1. Plugin setting url 2. Documentation link */
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>';
echo '</div>';
/* translators: 1. Plugin setting url 2. Documentation link */
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>';
echo '</div>';

$this->pro_addon_compatibility_campaign();
}

// Delete the transient so we don't keep displaying the activation message
delete_transient( 'cbxwpbookmark_upgraded_notice' );

$this->pro_addon_compatibility_campaign();
}
}//end plugin_activate_upgrade_notices

Expand Down
2 changes: 1 addition & 1 deletion assets/css/cbxwpbookmark-public.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cbxwpbookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: CBX Bookmark & Favorite
* Plugin URI: https://codeboxr.com/product/cbx-wordpress-bookmark
* Description: List/category based bookmark for WordPress, create your own private or public list of favorite posts, page, custom object
* Version: 1.8.11
* Version: 1.8.12
* Author: Codeboxr Team
* Author URI: https://codeboxr.com
* License: GPL-2.0+
Expand All @@ -31,7 +31,7 @@


defined( 'CBXWPBOOKMARK_PLUGIN_NAME' ) or define( 'CBXWPBOOKMARK_PLUGIN_NAME', 'cbxwpbookmark' );
defined( 'CBXWPBOOKMARK_PLUGIN_VERSION' ) or define( 'CBXWPBOOKMARK_PLUGIN_VERSION', '1.8.11' );
defined( 'CBXWPBOOKMARK_PLUGIN_VERSION' ) or define( 'CBXWPBOOKMARK_PLUGIN_VERSION', '1.8.12' );
defined( 'CBXWPBOOKMARK_BASE_NAME' ) or define( 'CBXWPBOOKMARK_BASE_NAME', plugin_basename( __FILE__ ) );
defined( 'CBXWPBOOKMARK_ROOT_PATH' ) or define( 'CBXWPBOOKMARK_ROOT_PATH', plugin_dir_path( __FILE__ ) );
defined( 'CBXWPBOOKMARK_ROOT_URL' ) or define( 'CBXWPBOOKMARK_ROOT_URL', plugin_dir_url( __FILE__ ) );
Expand Down
2 changes: 1 addition & 1 deletion includes/cbxwpbookmark-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function cbxwpbookmarks_load_svg( $svg_name = '' ) {

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

global $wp_filesystem;
Expand Down
7 changes: 7 additions & 0 deletions includes/class-cbxwpbookmark-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2978,6 +2978,13 @@ public static function cbxbookmark_create_page( $key = '', $slug = '', $page_tit
return $page_id;
}//end cbxbookmark_create_page

/**
* Get any plugin version number
*
* @param $plugin_slug
*
* @return mixed|string
*/
public static function get_any_plugin_version( $plugin_slug = '' ) {
if ( $plugin_slug == '' ) {
return '';
Expand Down
5 changes: 2 additions & 3 deletions includes/class-cbxwpbookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ private function define_admin_hooks() {
//plugin notices, active, upgrade, deactivation
add_filter( 'plugin_action_links_' . CBXWPBOOKMARK_BASE_NAME, [ $plugin_admin, 'plugin_action_links' ] );
add_filter( 'plugin_row_meta', [ $plugin_admin, 'plugin_row_meta' ], 10, 4 );
//add_action( 'upgrader_process_complete', [ $plugin_admin, 'plugin_upgrader_process_complete' ], 10, 2 );
add_action( 'plugins_loaded', [ $plugin_admin, 'plugin_upgrader_process_complete' ] );

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


//find all boomkark category by loggedin user ajax hook
//find all bookmark category by loggedin user ajax hook
add_action( 'wp_ajax_cbx_find_category', [ $plugin_public, 'find_category' ] );


Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: codeboxr, manchumahara
Tags: bookmark,favorite,collection,user collection,user bookmark
Requires at least: 5.3
Tested up to: 6.7.1
Stable tag: 1.8.11
Stable tag: 1.8.12
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -169,6 +169,10 @@ How to install the plugin and get it working.
== Screenshots ==

== Changelog ==
= 1.8.12 =
* [fixed] Style fixed for buddyboss theme
* [updated] Update notification display logic improved

= 1.8.11 =
* [improvement] Minor improvement
* [new] Implemented WordPress Action based release. Github repo in sync https://github.com/codeboxrcodehub/cbxwpbookmark
Expand Down
9 changes: 9 additions & 0 deletions templates/admin/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@
</div>
</div>
<div class="content">
<div class="cbx-backend-settings-row">
<p>
Version - 1.8.12
</p>
<ul>
<li>[fixed] Style fixed for buddyboss theme</li>
<li>[updated] Update notification display logic improved</li>
</ul>
</div>
<div class="cbx-backend-settings-row">
<p>
Version - 1.8.11
Expand Down

0 comments on commit 1e5823e

Please sign in to comment.