WP Multibyte Patch - Version 2.8.5

Version Description

Download this release

Release Info

Developer tenpura
Plugin Icon wp plugin WP Multibyte Patch
Version 2.8.5
Comparing to
See all releases

Code changes from version 2.8.4 to 2.8.5

Files changed (3) hide show
  1. ext/ja/class.php +1 -1
  2. readme.txt +1 -1
  3. wp-multibyte-patch.php +8 -3
ext/ja/class.php CHANGED
@@ -3,7 +3,7 @@
3
  * WP Multibyte Patch Japanese Locale Extension
4
  *
5
  * @package WP_Multibyte_Patch
6
- * @version 2.8.4
7
  * @author Seisuke Kuraishi <210pura@gmail.com>
8
  * @copyright Copyright (c) 2020 Seisuke Kuraishi, Tinybit Inc.
9
  * @license https://opensource.org/licenses/gpl-2.0.php GPLv2
3
  * WP Multibyte Patch Japanese Locale Extension
4
  *
5
  * @package WP_Multibyte_Patch
6
+ * @version 2.8.5
7
  * @author Seisuke Kuraishi <210pura@gmail.com>
8
  * @copyright Copyright (c) 2020 Seisuke Kuraishi, Tinybit Inc.
9
  * @license https://opensource.org/licenses/gpl-2.0.php GPLv2
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: tenpura
3
  Tags: multibyte,i18n,wp-multibyte-patch,Japanese
4
  Requires at least: 4.5
5
  Tested up to: 5.4
6
- Stable tag: 2.8.4
7
 
8
  Multibyte functionality enhancement for the WordPress Japanese package.
9
 
3
  Tags: multibyte,i18n,wp-multibyte-patch,Japanese
4
  Requires at least: 4.5
5
  Tested up to: 5.4
6
+ Stable tag: 2.8.5
7
 
8
  Multibyte functionality enhancement for the WordPress Japanese package.
9
 
wp-multibyte-patch.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: WP Multibyte Patch
4
  Description: Multibyte functionality enhancement for the WordPress Japanese package.
5
- Version: 2.8.4
6
  Plugin URI: https://eastcoder.com/code/wp-multibyte-patch/
7
  Author: Seisuke Kuraishi
8
  Author URI: https://tinybit.co.jp/
@@ -15,7 +15,7 @@ Domain Path: /languages
15
  * Multibyte functionality enhancement for the WordPress Japanese package.
16
  *
17
  * @package WP_Multibyte_Patch
18
- * @version 2.8.4
19
  * @author Seisuke Kuraishi <210pura@gmail.com>
20
  * @copyright Copyright (c) 2020 Seisuke Kuraishi, Tinybit Inc.
21
  * @license https://opensource.org/licenses/gpl-2.0.php GPLv2
@@ -244,7 +244,12 @@ class multibyte_patch {
244
 
245
  public function get_comment_excerpt( $excerpt = '', $comment_ID = 0, $comment = '' ) {
246
  $blog_encoding = $this->blog_encoding;
247
- $excerpt = strip_tags( str_replace( array( "\n", "\r" ), ' ', $comment->comment_content ) );
 
 
 
 
 
248
 
249
  if ( $this->mb_strlen( $excerpt, $blog_encoding ) > $this->conf['comment_excerpt_mblength'] )
250
  $excerpt = mb_substr( $excerpt, 0, $this->conf['comment_excerpt_mblength'], $blog_encoding ) . '&hellip;';
2
  /*
3
  Plugin Name: WP Multibyte Patch
4
  Description: Multibyte functionality enhancement for the WordPress Japanese package.
5
+ Version: 2.8.5
6
  Plugin URI: https://eastcoder.com/code/wp-multibyte-patch/
7
  Author: Seisuke Kuraishi
8
  Author URI: https://tinybit.co.jp/
15
  * Multibyte functionality enhancement for the WordPress Japanese package.
16
  *
17
  * @package WP_Multibyte_Patch
18
+ * @version 2.8.5
19
  * @author Seisuke Kuraishi <210pura@gmail.com>
20
  * @copyright Copyright (c) 2020 Seisuke Kuraishi, Tinybit Inc.
21
  * @license https://opensource.org/licenses/gpl-2.0.php GPLv2
244
 
245
  public function get_comment_excerpt( $excerpt = '', $comment_ID = 0, $comment = '' ) {
246
  $blog_encoding = $this->blog_encoding;
247
+
248
+ if ( ! post_password_required( $comment->comment_post_ID ) ) {
249
+ $excerpt = strip_tags( str_replace( array( "\n", "\r" ), ' ', $comment->comment_content ) );
250
+ } else {
251
+ $excerpt = __( 'Password protected' );
252
+ }
253
 
254
  if ( $this->mb_strlen( $excerpt, $blog_encoding ) > $this->conf['comment_excerpt_mblength'] )
255
  $excerpt = mb_substr( $excerpt, 0, $this->conf['comment_excerpt_mblength'], $blog_encoding ) . '&hellip;';