Skip to content

Commit 9d0c129

Browse files
committed
version 1.1.8 released
1 parent 0c47818 commit 9d0c129

7 files changed

+22
-43
lines changed

README.txt

Lines changed: 4 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.7.1
6-
Stable tag: 1.1.7
6+
Stable tag: 1.1.8
77
Requires PHP: 7.4
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -73,6 +73,9 @@ This helps to write changes log for any digital products, projects releases. Any
7373

7474

7575
== Changelog ==
76+
= 1.1.8 =
77+
* [fixed] Fixed the changelog edit screen error "Connection lost. Saving has been disabled until you are reconnected. This post is being backed up in your browser, just in case."
78+
7679
= 1.1.7 =
7780
* [fixed] Fixed the order issue in changelog edit screen
7881
* [new] Added new order by param 'id', here is release id, please note, release id and dashboard display index is not same.

assets/css/cbxchangelog-admin.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.

assets/css/cbxchangelog-listing.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.

assets/js/cbxchangelog-edit.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979

8080
//sorting single feature
8181
$('#cbxchangelog_wrapper .release-feature-wrap').each(function (index, element) {
82-
8382
var $element = $(element);
8483

8584
//sort sponsor item
@@ -112,11 +111,8 @@
112111

113112
//sorting single feature
114113
$('#cbxchangelog_wrapper .release-feature-wrap').each(function (index, element) {
115-
116114
var $element = $(element);
117115

118-
//console.log($element);
119-
120116
//sort sponsor item
121117
$element.sortable({
122118
group : 'feature_wrap_' + index,
@@ -129,9 +125,7 @@
129125
itemSelector : 'p.feature',
130126
containerSelector: $element,
131127
});
132-
133128
});
134-
135129
});
136130

137131
//remove any release
@@ -172,12 +166,9 @@
172166
});
173167

174168
new AWN(awn_options).success(data.message);
175-
176-
//window.location.href = data.url;
177169
} else {
178170
new AWN(awn_options).alert(data.message);
179171
}
180-
181172
}//end of success
182173
});//end of ajax
183174
}
@@ -269,21 +260,12 @@
269260
$('.wrap').addClass('cbx-chota cbxchangelog-page-wrapper cbxchangelog-addedit-wrapper');
270261
$('#search-submit').addClass('button primary');
271262
$('#post-query-submit').addClass('button primary');
272-
//$('.button.action').addClass('button outline primary');
273263
$('.button.action').addClass('button primary');
274264
$('.page-title-action').addClass('button primary');
275265
$('#save-post').addClass('button primary');
276-
//$('#doaction').addClass('button primary');
277266
$('#publish').addClass('button primary');
278-
279-
//$(cbxchangelog_admin_js_vars.global_setting_link_html).insertAfter('.page-title-action');
280267
$('#screen-meta').addClass('cbx-chota cbxchangelog-page-wrapper cbxchangelog-logs-wrapper');
281268
$('#screen-options-apply').addClass('primary');
282-
283-
284-
//$('#post-search-input').attr('placeholder', cbxchangelog_edit.placeholder.search);
285-
286-
287269
});
288270

289271
})(jQuery);

cbxchangelog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: CBX Changelog
1717
* Plugin URI: http://codeboxr.com/product/cbx-changelog-for-wordpress/
1818
* Description: Easy change log manager for WordPress, use for any product post type or releases notes
19-
* Version: 1.1.7
19+
* Version: 1.1.8
2020
* Author: Codeboxr
2121
* Author URI: http://codeboxr.com
2222
* License: GPL-2.0+
@@ -32,7 +32,7 @@
3232

3333

3434
defined( 'CBXCHANGELOG_PLUGIN_NAME' ) or define( 'CBXCHANGELOG_PLUGIN_NAME', 'cbxchangelog' );
35-
defined( 'CBXCHANGELOG_PLUGIN_VERSION' ) or define( 'CBXCHANGELOG_PLUGIN_VERSION', '1.1.7' );
35+
defined( 'CBXCHANGELOG_PLUGIN_VERSION' ) or define( 'CBXCHANGELOG_PLUGIN_VERSION', '1.1.8' );
3636
defined( 'CBXCHANGELOG_ROOT_PATH' ) or define( 'CBXCHANGELOG_ROOT_PATH', plugin_dir_path( __FILE__ ) );
3737
defined( 'CBXCHANGELOG_ROOT_URL' ) or define( 'CBXCHANGELOG_ROOT_URL', plugin_dir_url( __FILE__ ) );
3838
defined( 'CBXCHANGELOG_BASE_NAME' ) or define( 'CBXCHANGELOG_BASE_NAME', plugin_basename( __FILE__ ) );

includes/CBXChangelog.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,14 @@ private function define_admin_hooks() {
173173

174174
add_action( 'add_meta_boxes', [ $plugin_admin, 'add_meta_boxes_form' ] );
175175

176+
176177
//meta save
177178
add_action( 'save_post', [ $plugin_admin, 'metabox_save' ], 10, 3 ); //save meta
178179

180+
179181
add_filter( 'manage_edit-cbxchangelog_columns', [ $plugin_admin, 'cbxchangelog_add_new_columns' ] );
180182
add_action( 'manage_cbxchangelog_posts_custom_column', [ $plugin_admin, 'cbxchangelog_manage_columns' ] );
181183

182-
183184
add_action( 'admin_enqueue_scripts', [ $plugin_admin, 'enqueue_styles' ] );
184185
add_action( 'admin_enqueue_scripts', [ $plugin_admin, 'enqueue_scripts' ] );
185186

includes/CBXChangelogAdmin.php

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function init_post_types() {
134134
'label' => __( 'Changelog', 'cbxchangelog' ),
135135
'description' => __( 'Changelog', 'cbxchangelog' ),
136136
'labels' => $labels,
137-
'supports' => [ 'title', 'editor', 'thumbnail', 'author', 'excerpt', 'comments' ],
137+
//'supports' => [ 'title', 'editor', 'thumbnail', 'author', 'excerpt', 'comments' ],
138138
'hierarchical' => false,
139139
'public' => true,
140140
'show_ui' => true,
@@ -575,8 +575,12 @@ public function enqueue_scripts( $hook ) {
575575

576576
$allowed_post_types = CBXChangelogHelper::supported_post_types();
577577

578+
$in_footer = array(
579+
'in_footer' => true,
580+
);
581+
578582
if ( in_array( $post_type, $allowed_post_types ) && $hook == 'edit.php' && $page == '' ) {
579-
wp_register_script( 'cbxchangelog-listing', $js_url_part . 'cbxchangelog-listing.js', [ 'jquery' ], $version, true );
583+
wp_register_script( 'cbxchangelog-listing', $js_url_part . 'cbxchangelog-listing.js', [ 'jquery' ], $version, $in_footer );
580584

581585
wp_localize_script( 'cbxchangelog-listing', 'cbxchangelog_listing', apply_filters( 'cbxchangelog_listing_localize_script',
582586
[
@@ -600,13 +604,13 @@ public function enqueue_scripts( $hook ) {
600604
if ( in_array( $post_type, $allowed_post_types ) && ( $hook == 'post.php' || $hook == 'post-new.php' ) && $page == '' ) {
601605
wp_enqueue_script( 'jquery' );
602606

603-
wp_register_script( 'pickr', $vendors_url_part . 'pickr/pickr.min.js', [], $version, true );
604-
wp_register_script( 'awesome-notifications', $vendors_url_part . 'awesome-notifications/script.js', [], $version, true );
605-
wp_register_script( 'jquery-mustache', $vendors_url_part . 'mustache/jquery.mustache.js', [ 'jquery' ], $version, true );
607+
wp_register_script( 'pickr', $vendors_url_part . 'pickr/pickr.min.js', [], $version, $in_footer );
608+
wp_register_script( 'awesome-notifications', $vendors_url_part . 'awesome-notifications/script.js', [], $version, $in_footer );
609+
wp_register_script( 'jquery-mustache', $vendors_url_part . 'mustache/jquery.mustache.js', [ 'jquery' ], $version, $in_footer );
606610
wp_register_script( 'mustache', $vendors_url_part . 'mustache/mustache.min.js', [
607611
'jquery-mustache',
608612
'jquery'
609-
], $version, true );
613+
], $version, $in_footer );
610614

611615
wp_register_script( 'cbxchangelog-edit', $js_url_part . 'cbxchangelog-edit.js', [
612616
'jquery',
@@ -619,19 +623,11 @@ public function enqueue_scripts( $hook ) {
619623

620624
'pickr',
621625
'awesome-notifications',
622-
], $version, true );
626+
], $version, $in_footer );
623627

624628
//$changelog_id = isset($_REQUEST['id'])? absint($_REQUEST['id']) : 0;
625629
$changelog_id = isset( $post->ID ) ? absint( $post->ID ) : 0;
626630

627-
628-
/*$import_modal_html = '<div id="changelog_import_modal_wrap" class="cbx-chota">';
629-
$import_modal_html .= '<h2>' . esc_html__( 'Import Setting: Json file', 'cbxchangelog' ) . '</h2>';
630-
$import_modal_html .= '<form method="post" id="changelog_import_form" data-post-id="' . absint($changelog_id) . '">';
631-
$import_modal_html .= '<input type="file" name="file" id="changelog_import_file" data-post-id="' . absint($changelog_id) . '" />';
632-
$import_modal_html .= '</form>';
633-
$import_modal_html .= '</div>';*/
634-
635631
wp_localize_script( 'cbxchangelog-edit', 'cbxchangelog_edit', apply_filters( 'cbxchangelog_edit_localize_script',
636632
[
637633
'deleteconfirm' => esc_html__( 'Are you sure?', 'cbxchangelog' ),
@@ -702,8 +698,7 @@ public function enqueue_scripts( $hook ) {
702698
//'import_modal_progress' => '<p>' . esc_html__( 'Please wait, importing', 'cbxchangelog' ) . '</p>',
703699
'nonce' => wp_create_nonce( 'cbxchangelog_nonce' ),
704700
'ajaxurl' => admin_url( 'admin-ajax.php' ),
705-
] )
706-
);
701+
] ));
707702

708703

709704
wp_enqueue_media();
@@ -720,10 +715,8 @@ public function enqueue_scripts( $hook ) {
720715
wp_enqueue_script( 'pickr' );
721716
wp_enqueue_script( 'awesome-notifications' );
722717

723-
// wp_enqueue_script( 'cbxchangelog-edit' );
724718

725719
wp_enqueue_script( 'cbxchangelog-edit' );
726-
727720
}//end only for post add/edit screen
728721

729722

0 commit comments

Comments
 (0)