diff --git a/src/README.txt b/src/README.txt index abd04c67..80f6d75b 100644 --- a/src/README.txt +++ b/src/README.txt @@ -4,7 +4,7 @@ Tags: sesamy, paywall Requires at least: 5.0.1 Requires PHP: 7.4 Tested up to: 6.4.2 -Stable tag: 1.0.6 +Stable tag: 1.0.7 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -102,6 +102,10 @@ The following filters can be used to modify the default output from the plugin: == Changelog == += 1.0.7 = +* Fixed API endpoint issue +* Fixed wp_kses_post issue + = 1.0.6 = * Added classic editor support * Added Access level option in post diff --git a/src/admin/class-sesamy-post-editor.php b/src/admin/class-sesamy-post-editor.php index 904e8187..9ab28fe3 100644 --- a/src/admin/class-sesamy-post-editor.php +++ b/src/admin/class-sesamy-post-editor.php @@ -43,7 +43,7 @@ function () { 'sesamy-post-editor', 'sesamy_block_obj', array( - 'home' => get_site_url(), + 'home' => get_home_url(), ) ); } diff --git a/src/includes/class-sesamy-api-endpoint.php b/src/includes/class-sesamy-api-endpoint.php index 73f4e229..98bcc3c4 100644 --- a/src/includes/class-sesamy-api-endpoint.php +++ b/src/includes/class-sesamy-api-endpoint.php @@ -175,7 +175,7 @@ public function format_response( $served, $result, $request, $server ) { case 'text/html': header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) ); if ( ! empty( $result ) ) { - echo wp_kses_post( $result->data['data'], wp_allowed_protocols() ); + echo $result->data['data'], wp_allowed_protocols(); } exit; } diff --git a/src/includes/class-sesamy-utils.php b/src/includes/class-sesamy-utils.php index 34e00986..d85fc0fe 100644 --- a/src/includes/class-sesamy-utils.php +++ b/src/includes/class-sesamy-utils.php @@ -85,7 +85,7 @@ public static function make_tag( $name, $atts, $content, $self_close = true, $re echo '>'; - echo ( empty( $content ) && $self_close ) ? '/>' : wp_kses_post( $content ) . '' . esc_attr( $name ) . '>'; + echo ( empty( $content ) && $self_close ) ? '/>' : $content . '' . esc_attr( $name ) . '>'; } /** diff --git a/src/public/sesamy-global-functions.php b/src/public/sesamy-global-functions.php index dbd62da5..aaf9b1f8 100644 --- a/src/public/sesamy-global-functions.php +++ b/src/public/sesamy-global-functions.php @@ -79,15 +79,15 @@ function ( $key ) use ( $non_display_atts ) { echo '/>'; if ( ! isset( $atts['public'] ) ) { - echo '