Skip to content

Commit d273a59

Browse files
committed
Preparing plugin for new version and ready to merge
1 parent e3a4738 commit d273a59

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

changelog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LSX Change log
22

3-
# [[2.7.1]] - In Development
3+
# [[2.8.0]] - 2020-05-21
44

55
### Added
66
- One new hooks/actions added in layouts: `lsx_entry_inside_top` to hook into a page content.
@@ -18,6 +18,9 @@
1818
- Body class `using-gutenberg` affecting other custom post type single pages was removed from any custom post type single page.
1919
- Fixed a few styling issues related to Sensei templates.
2020

21+
### Security
22+
- Testing compatibility with WordPress 5.4.1
23+
2124

2225
## [[2.7.0]](https://github.com/lightspeeddevelopment/lsx/releases/tag/2.7.0) - 2020-03-30
2326

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
exit;
1212
}
1313

14-
define( 'LSX_VERSION', '2.7' );
14+
define( 'LSX_VERSION', '2.8' );
1515

1616
if ( class_exists( 'WooCommerce' ) ) {
1717
require get_template_directory() . '/includes/woocommerce/woocommerce.php';

includes/sensei/class-lsx-sensei-course.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ public function display_course_amount() {
151151
$is_user_taking_course = Sensei_Course::is_user_enrolled( $post->ID, $current_user->ID );
152152
$is_user_starting_course = Sensei_Utils::has_started_course( $post->ID, $current_user->ID );
153153
$wc_post_id = absint( get_post_meta( $post->ID, '_course_woocommerce_product', true ) );
154-
$course_purchasable = '';
154+
$course_purchasable = '';
155155
if ( class_exists( 'Sensei_WC' ) ) {
156156
$course_purchasable = Sensei_WC::is_course_purchasable( $post->ID );
157157
$currency = get_woocommerce_currency_symbol();
158158
$product = new WC_Product( $wc_post_id );
159159
if ( ( ! empty( $product->get_price() ) ) && ( ( ! $is_user_taking_course ) || ( ! $is_user_starting_course ) ) ) {
160160
echo '<span class="course-product-price price"><span>' . esc_html( $currency ) . ' </span>' . sprintf( '%0.2f', esc_html( $product->get_price() ) ) . '</span>';
161-
} elseif ( ( '' === $product->get_price() || 0 == $product->get_price() ) && $course_purchasable ) {
161+
} elseif ( ( '' === $product->get_price() || 0 == $product->get_price() ) && $course_purchasable && ( ( ! $is_user_taking_course ) || ( ! $is_user_starting_course ) ) ) {
162162
echo '<span class="course-product-price price">' . wp_kses_post( 'Free!', 'lsx' ) . '</span>';
163163
}
164164
}

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Contributors: feedmymedia
33
Donate link: https://donate.lsdev.biz/
44
Tags: LSX Theme, Gutenberg, Block Based Builder, WordPress Theme
55
Requires at least: 5.1.1
6-
Tested up to: 5.4
6+
Tested up to: 5.4.1
77
Requires PHP: 7.0
8-
Stable tag: 2.7
8+
Stable tag: 2.8
99
License: GPLv3
1010
Licence URI: https://www.gnu.org/licenses/gpl-3.0.en.html
1111

0 commit comments

Comments
 (0)