Skip to content

Commit

Permalink
Release 2.5.5 (#226)
Browse files Browse the repository at this point in the history
* Additional plugin checks and escaping (#225)
  • Loading branch information
brianhogg authored Jul 9, 2024
1 parent 667a3bb commit 188b0a5
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 19 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
LifterLMS Blocks Changelog
==========================

v2.5.5 - 2024-07-09
-------------------

##### Security Fixes

+ Adds additional security checks and escaping.


v2.5.4 - 2024-04-25
-------------------

Expand Down
6 changes: 3 additions & 3 deletions i18n/lifterlms-blocks.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPLv3.
msgid ""
msgstr ""
"Project-Id-Version: LifterLMS Blocks 2.5.4\n"
"Project-Id-Version: LifterLMS Blocks 2.5.5\n"
"Report-Msgid-Bugs-To: https://lifterlms.com/my-account/my-tickets\n"
"Last-Translator: Team LifterLMS <team@lifterlms.com>\n"
"Language-Team: Team LifterLMS <team@lifterlms.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-04-25T16:55:53+00:00\n"
"POT-Creation-Date: 2024-07-09T14:27:22+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: llms/dev 0.2.1\n"
"X-Domain: lifterlms\n"
Expand Down Expand Up @@ -56,7 +56,7 @@ msgstr ""
msgid "No visible instructors were found."
msgstr ""

#: includes/blocks/class-llms-blocks-pricing-table-block.php:94
#: includes/blocks/class-llms-blocks-pricing-table-block.php:93
msgid "No access plans found."
msgstr ""

Expand Down
4 changes: 1 addition & 3 deletions includes/blocks/class-llms-blocks-course-progress-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class LLMS_Blocks_Course_Progress_Block extends LLMS_Blocks_Abstract_Block {
public function add_hooks( $attributes = array(), $content = '' ) {

add_action( $this->get_render_hook(), array( $this, 'output' ), 10 );

}

/**
Expand Down Expand Up @@ -83,9 +82,8 @@ public function output( $attributes = array() ) {
$block_content = apply_filters( 'llms_blocks_render_course_progress_block', $block_content, $attributes, $this );

if ( $block_content ) {
echo $block_content;
echo wp_kses_post( $block_content );
}

}
}

Expand Down
5 changes: 1 addition & 4 deletions includes/blocks/class-llms-blocks-php-template-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class LLMS_Blocks_PHP_Template_Block extends LLMS_Blocks_Abstract_Block {
public function add_hooks( $attributes = array(), $content = '' ) {

add_action( $this->get_render_hook(), array( $this, 'output' ), 10 );

}

/**
Expand Down Expand Up @@ -134,11 +133,9 @@ public function output( $attributes = array() ) {
$block_content = apply_filters( 'llms_blocks_render_php_template_block', $block_content, $attributes, $templates[ $attributes['template'] ], $this );

if ( $block_content ) {
echo $block_content;
echo wp_kses_post( $block_content );
}

}

}

return new LLMS_Blocks_PHP_Template_Block();
6 changes: 2 additions & 4 deletions includes/blocks/class-llms-blocks-pricing-table-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class LLMS_Blocks_Pricing_Table_Block extends LLMS_Blocks_Abstract_Block {
public function add_hooks( $attributes = array(), $content = '' ) {

add_action( $this->get_render_hook(), array( $this, 'output' ), 10 );

}

/**
Expand Down Expand Up @@ -91,7 +90,7 @@ public function output( $attributes = array() ) {
if ( $id ) {
$product = new LLMS_Product( $id );
if ( ! $product->get_access_plans() ) {
echo '<p>' . __( 'No access plans found.', 'lifterlms' ) . '</p>';
echo '<p>' . esc_html__( 'No access plans found.', 'lifterlms' ) . '</p>';
}
}

Expand Down Expand Up @@ -120,9 +119,8 @@ public function output( $attributes = array() ) {
remove_filter( 'llms_product_is_purchasable', '__return_true' );

if ( $block_content ) {
echo $block_content;
echo wp_kses_post( $block_content );
}

}
}

Expand Down
4 changes: 2 additions & 2 deletions lifterlms-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: LifterLMS Blocks
* Plugin URI: https://github.com/gocodebox/lifterlms-blocks
* Description: WordPress Editor (Gutenberg) blocks for LifterLMS.
* Version: 2.5.4
* Version: 2.5.5
* Author: LifterLMS
* Author URI: https://lifterlms.com/
* Text Domain: lifterlms
Expand All @@ -27,7 +27,7 @@

// Define Constants.
if ( ! defined( 'LLMS_BLOCKS_VERSION' ) ) {
define( 'LLMS_BLOCKS_VERSION', '2.5.4' );
define( 'LLMS_BLOCKS_VERSION', '2.5.5' );
}

/**
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lifterlms-blocks",
"version": "2.5.4",
"version": "2.5.5",
"description": "blocks",
"author": "LifterLMS",
"homepage": "https://lifterlms.com/",
Expand Down

0 comments on commit 188b0a5

Please sign in to comment.