Skip to content

Commit 8680ebd

Browse files
committed
version 2.0.8 released
1 parent ba5c27a commit 8680ebd

File tree

8 files changed

+79
-120
lines changed

8 files changed

+79
-120
lines changed

README.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: codeboxr, manchumahara
33
Tags: changelog,history,release,version,product log
44
Requires at least: 5.3
55
Tested up to: 6.8
6-
Stable tag: 2.0.7
6+
Stable tag: 2.0.8
77
Requires PHP: 7.4
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -74,6 +74,11 @@ This helps to write changes log for any digital products, projects releases. Any
7474

7575

7676
== Changelog ==
77+
= 2.0.8 =
78+
* [fixed] PHP Compatibility check on plugin loading
79+
* [updated] WordPress core 6.8 compatibility checked
80+
* [updated] Pro Addon V1.2.3 released
81+
7782
= 2.0.7 =
7883
* [fixed] Fixed elementor bug https://wordpress.org/support/topic/wrong-order-in-cbxchangelog-widget/#post-18472230
7984
* [updated] WordPress core 6.8 compatibility checked

cbxchangelog.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: CBX Changelog & Release Note
1111
* Plugin URI: http://codeboxr.com/product/cbx-changelog-for-wordpress/
1212
* Description: Easy change log manager for WordPress, use for any product post type or releases notes
13-
* Version: 2.0.7
13+
* Version: 2.0.8
1414
* Author: Codeboxr
1515
* Author URI: http://codeboxr.com
1616
* License: GPL-2.0+
@@ -26,11 +26,13 @@
2626

2727

2828
defined( 'CBXCHANGELOG_PLUGIN_NAME' ) or define( 'CBXCHANGELOG_PLUGIN_NAME', 'cbxchangelog' );
29-
defined( 'CBXCHANGELOG_PLUGIN_VERSION' ) or define( 'CBXCHANGELOG_PLUGIN_VERSION', '2.0.7' );
29+
defined( 'CBXCHANGELOG_PLUGIN_VERSION' ) or define( 'CBXCHANGELOG_PLUGIN_VERSION', '2.0.8' );
3030
defined( 'CBXCHANGELOG_ROOT_PATH' ) or define( 'CBXCHANGELOG_ROOT_PATH', plugin_dir_path( __FILE__ ) );
3131
defined( 'CBXCHANGELOG_ROOT_URL' ) or define( 'CBXCHANGELOG_ROOT_URL', plugin_dir_url( __FILE__ ) );
3232
defined( 'CBXCHANGELOG_BASE_NAME' ) or define( 'CBXCHANGELOG_BASE_NAME', plugin_basename( __FILE__ ) );
3333

34+
defined( 'CBXCHANGELOG_WP_MIN_VERSION' ) or define( 'CBXCHANGELOG_WP_MIN_VERSION', '5.3' );
35+
defined( 'CBXCHANGELOG_PHP_MIN_VERSION' ) or define( 'CBXCHANGELOG_PHP_MIN_VERSION', '7.4' );
3436

3537
/**
3638
* The core plugin class that is used to define internationalization,
@@ -43,8 +45,9 @@
4345
*
4446
* @return bool
4547
*/
46-
function cbxchangelog_compatible_wp_version() {
47-
if ( version_compare( $GLOBALS['wp_version'], '5.3', '<' ) ) {
48+
function cbxchangelog_compatible_wp_version($version = '') {
49+
if($version == '') $version = CBXCHANGELOG_WP_MIN_VERSION;
50+
if ( version_compare( $GLOBALS['wp_version'], $version, '<' ) ) {
4851
return false;
4952
}
5053

@@ -58,8 +61,9 @@ function cbxchangelog_compatible_wp_version() {
5861
*
5962
* @return bool
6063
*/
61-
function cbxchangelog_compatible_php_version() {
62-
if ( version_compare( PHP_VERSION, '7.4', '<=' ) ) {
64+
function cbxchangelog_compatible_php_version($version = '') {
65+
if($version == '') $version = CBXCHANGELOG_PHP_MIN_VERSION;
66+
if ( version_compare( PHP_VERSION, $version, '<' ) ) {
6367
return false;
6468
}
6569

composer.lock

Lines changed: 0 additions & 72 deletions
This file was deleted.

includes/CBXChangelog.php

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,18 @@ public function __construct() {
7373
$this->version = CBXCHANGELOG_PLUGIN_VERSION;
7474

7575

76-
$this->load_dependencies();
76+
if ( cbxchangelog_compatible_php_version() ) {
77+
$this->load_dependencies();
7778

7879

79-
$this->define_common_hooks();
80-
$this->define_admin_hooks();
81-
$this->define_public_hooks();
80+
$this->define_common_hooks();
81+
$this->define_admin_hooks();
82+
$this->define_public_hooks();
83+
}
84+
else{
85+
add_action( 'admin_notices', [ $this, 'php_version_notice' ] );
86+
}
87+
8288
}//end of constructor
8389

8490
/**
@@ -270,7 +276,6 @@ private function define_public_hooks() {
270276

271277
//Wpbakery
272278
add_action( 'vc_before_init', [ $plugin_public, 'vc_before_init_actions' ] ); //priority set to 12 from default 10
273-
274279
}//end define_public_hooks
275280

276281
/**
@@ -293,4 +298,16 @@ public function get_plugin_name() {
293298
public function get_version() {
294299
return $this->version;
295300
}//end method get_version
301+
302+
/**
303+
* Show php version notice in dashboard
304+
*
305+
* @return void
306+
*/
307+
public function php_version_notice() {
308+
echo '<div class="error"><p>';
309+
/* translators: PHP required version */
310+
echo sprintf(esc_html__( 'CBX Changelog & Release Note requires at least PHP %s. Please upgrade PHP to run CBX Changelog & Release Note.', 'cbxchangelog' ), esc_attr(CBXCHANGELOG_PHP_MIN_VERSION));
311+
echo '</p></div>';
312+
}//end method php_version_notice
296313
}//end method CBXChangelog

includes/CBXChangelogAdmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ public function custom_message_after_plugin_row_proaddon( $plugin_file, $plugin_
984984
}
985985

986986
$pro_addon_version = CBXChangelogHelper::get_any_plugin_version( 'cbxchangelogpro/cbxchangelogpro.php' );
987-
$pro_latest_version = '1.2.2';
987+
$pro_latest_version = '1.2.3';
988988

989989

990990
if ( $pro_addon_version != '' && version_compare( $pro_addon_version, $pro_latest_version, '<' ) ) {

languages/cbxchangelog.pot

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ msgid ""
33
msgstr ""
44
"Project-Id-Version: PACKAGE VERSION\n"
55
"Report-Msgid-Bugs-To: \n"
6-
"POT-Creation-Date: 2025-04-09 17:25+0000\n"
6+
"POT-Creation-Date: 2025-06-01 03:38+0000\n"
77
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
88
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
99
"Language-Team: \n"
@@ -156,15 +156,15 @@ msgstr ""
156156
msgid "CBX Changelog & Release Note"
157157
msgstr ""
158158

159-
#: templates/admin/support.php:181
159+
#: templates/admin/support.php:182
160160
msgid "CBX Changelog & Release Note Plugin Details"
161161
msgstr ""
162162

163-
#: cbxchangelog.php:82
163+
#: cbxchangelog.php:84
164164
msgid "CBX Changelog & Release Note plugin requires PHP 7.4 or higher!"
165165
msgstr ""
166166

167-
#: cbxchangelog.php:77
167+
#: cbxchangelog.php:79
168168
msgid "CBX Changelog & Release Note plugin requires WordPress 5.3 or higher!"
169169
msgstr ""
170170

@@ -177,6 +177,13 @@ msgid ""
177177
"href=\"%s\">try it</a> - Codeboxr Team"
178178
msgstr ""
179179

180+
#: includes/CBXChangelog.php:310
181+
#, php-format
182+
msgid ""
183+
"CBX Changelog & Release Note requires at least PHP %s. Please upgrade PHP to "
184+
"run CBX Changelog & Release Note."
185+
msgstr ""
186+
180187
#: includes/CBXChangelogAdmin.php:163
181188
msgid "CBX Changelog & Release Note Settings"
182189
msgstr ""
@@ -232,7 +239,7 @@ msgstr ""
232239
msgid "Changelog id missing or changelog doesn't exists"
233240
msgstr ""
234241

235-
#: templates/admin/support.php:132
242+
#: templates/admin/support.php:135
236243
msgid "Changelog Pro Addon"
237244
msgstr ""
238245

@@ -365,19 +372,19 @@ msgstr ""
365372
msgid "Click to show/hide"
366373
msgstr ""
367374

368-
#: includes/CBXChangelog.php:108 includes/CBXChangelogSettings.php:61
375+
#: includes/CBXChangelog.php:114 includes/CBXChangelogSettings.php:61
369376
msgid "Cloning is forbidden."
370377
msgstr ""
371378

372379
#. Author of the plugin
373380
msgid "Codeboxr"
374381
msgstr ""
375382

376-
#: templates/admin/support.php:263
383+
#: templates/admin/support.php:264
377384
msgid "Codeboxr News Updates"
378385
msgstr ""
379386

380-
#: includes/CBXChangelogPublic.php:536
387+
#: includes/CBXChangelogPublic.php:539
381388
msgid "Codeboxr Widgets"
382389
msgstr ""
383390

@@ -420,7 +427,7 @@ msgstr ""
420427
msgid "Copy"
421428
msgstr ""
422429

423-
#: templates/admin/support.php:209
430+
#: templates/admin/support.php:210
424431
msgid "Core Plugin Support"
425432
msgstr ""
426433

@@ -520,7 +527,7 @@ msgstr ""
520527
msgid "Documentation"
521528
msgstr ""
522529

523-
#: templates/admin/support.php:191
530+
#: templates/admin/support.php:192
524531
msgid "Documentation & User Guide"
525532
msgstr ""
526533

@@ -605,7 +612,7 @@ msgstr ""
605612
msgid "Group label"
606613
msgstr ""
607614

608-
#: templates/admin/support.php:170
615+
#: templates/admin/support.php:171
609616
msgid "Help & Supports"
610617
msgstr ""
611618

@@ -655,7 +662,7 @@ msgstr ""
655662
msgid "Markdown Support"
656663
msgstr ""
657664

658-
#: includes/CBXChangelogPublic.php:374
665+
#: includes/CBXChangelogPublic.php:377
659666
msgid "More details about this release"
660667
msgstr ""
661668

@@ -773,7 +780,7 @@ msgstr ""
773780
msgid "Order By"
774781
msgstr ""
775782

776-
#: templates/admin/support.php:226
783+
#: templates/admin/support.php:227
777784
msgid "Other WordPress Plugins"
778785
msgstr ""
779786

@@ -872,7 +879,7 @@ msgstr ""
872879
msgid "Prepros(Default)"
873880
msgstr ""
874881

875-
#: templates/admin/support.php:219
882+
#: templates/admin/support.php:220
876883
msgid "Pro Addon Support"
877884
msgstr ""
878885

@@ -963,7 +970,7 @@ msgstr ""
963970
msgid "Reset option values and all tables created by this plugin"
964971
msgstr ""
965972

966-
#: templates/admin/support.php:199
973+
#: templates/admin/support.php:200
967974
msgid "Review & Rate CBX Changelog Plugin"
968975
msgstr ""
969976

@@ -1000,7 +1007,7 @@ msgid "selection slider"
10001007
msgstr ""
10011008

10021009
#: widgets/elementor-elements/class-cbxchangelog-elemwidget.php:89
1003-
#: widgets/elementor-elements/class-cbxchangelog-elemwidget.php:290
1010+
#: widgets/elementor-elements/class-cbxchangelog-elemwidget.php:293
10041011
#: widgets/vc-element/class-cbxchangelog-wpbwidget.php:41
10051012
#: widgets/classic-widgets/cbxchangelog-widget/views/admin.php:17
10061013
msgid "Set Post ID(Change log post type or other supported)"
@@ -1190,7 +1197,7 @@ msgstr ""
11901197
msgid "Uncheck All"
11911198
msgstr ""
11921199

1193-
#: includes/CBXChangelog.php:117 includes/CBXChangelogSettings.php:70
1200+
#: includes/CBXChangelog.php:123 includes/CBXChangelogSettings.php:70
11941201
msgid "Unserializing instances of this class is forbidden."
11951202
msgstr ""
11961203

0 commit comments

Comments
 (0)