SEO SIMPLE PACK - Version 2.5.1

Version Description

  • Replaced do_shortcode() with strip_shortcodes() when generating descriptions.
Download this release

Release Info

Developer looswebstudio
Plugin Icon 128x128 SEO SIMPLE PACK
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.1

class/trait/output_helper.php CHANGED
@@ -247,7 +247,7 @@ trait Output_Helper {
247
  // description
248
  if ( false !== strpos( $str, '%_page_contents_%' ) ) {
249
  $word_count = apply_filters( 'ssp_description_word_count', 120 );
250
- $content = wp_strip_all_tags( do_shortcode( $obj->post_content ), true ); // 改行なども削除
251
  $content = mb_substr( $content, 0, $word_count );
252
  $str = str_replace( '%_page_contents_%', $content, $str );
253
  }
@@ -262,7 +262,7 @@ trait Output_Helper {
262
  $str = str_replace( ['%_cat_name_%', '%_tag_name_%', '%_term_name_%', '%_format_name_%' ], $obj->name, $str );
263
 
264
  // description
265
- $term_desc = wp_strip_all_tags( do_shortcode( $obj->description ), true ); // 改行なども削除
266
  $str = str_replace( '%_term_description_%', $term_desc, $str );
267
 
268
  // タクソノミー名
247
  // description
248
  if ( false !== strpos( $str, '%_page_contents_%' ) ) {
249
  $word_count = apply_filters( 'ssp_description_word_count', 120 );
250
+ $content = wp_strip_all_tags( strip_shortcodes( $obj->post_content ), true ); // 改行なども削除
251
  $content = mb_substr( $content, 0, $word_count );
252
  $str = str_replace( '%_page_contents_%', $content, $str );
253
  }
262
  $str = str_replace( ['%_cat_name_%', '%_tag_name_%', '%_term_name_%', '%_format_name_%' ], $obj->name, $str );
263
 
264
  // description
265
+ $term_desc = wp_strip_all_tags( strip_shortcodes( $obj->description ), true ); // 改行なども削除
266
  $str = str_replace( '%_term_description_%', $term_desc, $str );
267
 
268
  // タクソノミー名
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === SEO SIMPLE PACK ===
2
  Contributors: looswebstudio
3
  Donate link: https://loos-web-studio.com/
4
- Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 6.0
7
- Stable tag: 2.5.0
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -121,6 +121,9 @@ The following hooks are available.
121
 
122
  == Changelog ==
123
 
 
 
 
124
  = 2.5.0 =
125
  - Add get_front_data().
126
 
1
  === SEO SIMPLE PACK ===
2
  Contributors: looswebstudio
3
  Donate link: https://loos-web-studio.com/
4
+ Tags: SEO, meta, analytics, wsebmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 6.0
7
+ Stable tag: 2.5.1
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
121
 
122
  == Changelog ==
123
 
124
+ = 2.5.1 =
125
+ - Replaced do_shortcode() with strip_shortcodes() when generating descriptions.
126
+
127
  = 2.5.0 =
128
  - Add get_front_data().
129
 
seo-simple-pack.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
- * Version: 2.5.0
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
+ * Version: 2.5.1
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later