WP Multibyte Patch - Version 2.8.2

Version Description

Download this release

Release Info

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

Code changes from version 2.8.1 to 2.8.2

Files changed (4) hide show
  1. ext/ja/admin.css +1 -1
  2. ext/ja/class.php +3 -3
  3. readme.txt +2 -2
  4. wp-multibyte-patch.php +7 -3
ext/ja/admin.css CHANGED
@@ -1,5 +1,5 @@
1
  @charset "utf-8";
2
 
3
- body *:not(textarea) {
4
  font-style: normal !important;
5
  }
1
  @charset "utf-8";
2
 
3
+ body:not(.block-editor-page) :not(textarea) {
4
  font-style: normal !important;
5
  }
ext/ja/class.php CHANGED
@@ -3,9 +3,9 @@
3
  * WP Multibyte Patch Japanese Locale Extension
4
  *
5
  * @package WP_Multibyte_Patch
6
- * @version 2.8.1
7
  * @author Seisuke Kuraishi <210pura@gmail.com>
8
- * @copyright Copyright (c) 2016 Seisuke Kuraishi, Tinybit Inc.
9
  * @license http://opensource.org/licenses/gpl-2.0.php GPLv2
10
  * @link http://eastcoder.com/code/wp-multibyte-patch/
11
  */
@@ -95,7 +95,7 @@ if ( class_exists( 'multibyte_patch' ) ) :
95
  if ( 'UTF-8' == $mode ) {
96
  $phpmailer->CharSet = 'UTF-8';
97
  $phpmailer->Encoding = 'base64';
98
- $phpmailer->AddCustomHeader( 'Content-Disposition: inline' );
99
  $phpmailer->FromName = $this->encode_mimeheader_b_uncut( $phpmailer->FromName, 'UTF-8' );
100
  $phpmailer->Subject = $this->encode_mimeheader_b_uncut( $phpmailer->Subject, 'UTF-8' );
101
 
3
  * WP Multibyte Patch Japanese Locale Extension
4
  *
5
  * @package WP_Multibyte_Patch
6
+ * @version 2.8.2
7
  * @author Seisuke Kuraishi <210pura@gmail.com>
8
+ * @copyright Copyright (c) 2018 Seisuke Kuraishi, Tinybit Inc.
9
  * @license http://opensource.org/licenses/gpl-2.0.php GPLv2
10
  * @link http://eastcoder.com/code/wp-multibyte-patch/
11
  */
95
  if ( 'UTF-8' == $mode ) {
96
  $phpmailer->CharSet = 'UTF-8';
97
  $phpmailer->Encoding = 'base64';
98
+ $phpmailer->addCustomHeader( 'Content-Disposition: inline' );
99
  $phpmailer->FromName = $this->encode_mimeheader_b_uncut( $phpmailer->FromName, 'UTF-8' );
100
  $phpmailer->Subject = $this->encode_mimeheader_b_uncut( $phpmailer->Subject, 'UTF-8' );
101
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: tenpura
3
  Tags: multibyte,i18n,wp-multibyte-patch,Japanese
4
  Requires at least: 4.5
5
- Tested up to: 4.9
6
- Stable tag: 2.8.1
7
 
8
  Multibyte functionality enhancement for the WordPress Japanese package.
9
 
2
  Contributors: tenpura
3
  Tags: multibyte,i18n,wp-multibyte-patch,Japanese
4
  Requires at least: 4.5
5
+ Tested up to: 5.0
6
+ Stable tag: 2.8.2
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.1
6
  Plugin URI: http://eastcoder.com/code/wp-multibyte-patch/
7
  Author: Seisuke Kuraishi
8
  Author URI: http://tinybit.co.jp/
@@ -15,9 +15,9 @@ Domain Path: /languages
15
  * Multibyte functionality enhancement for the WordPress Japanese package.
16
  *
17
  * @package WP_Multibyte_Patch
18
- * @version 2.8.1
19
  * @author Seisuke Kuraishi <210pura@gmail.com>
20
- * @copyright Copyright (c) 2016 Seisuke Kuraishi, Tinybit Inc.
21
  * @license http://opensource.org/licenses/gpl-2.0.php GPLv2
22
  * @link http://eastcoder.com/code/wp-multibyte-patch/
23
  */
@@ -219,6 +219,10 @@ class multibyte_patch {
219
 
220
  public function trim_multibyte_excerpt( $text = '', $length = 110, $more = ' [&hellip;]', $encoding = 'UTF-8' ) {
221
  $text = strip_shortcodes( $text );
 
 
 
 
222
  $text = str_replace( ']]>', ']]&gt;', $text );
223
  $text = strip_tags( $text );
224
  $text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );
2
  /*
3
  Plugin Name: WP Multibyte Patch
4
  Description: Multibyte functionality enhancement for the WordPress Japanese package.
5
+ Version: 2.8.2
6
  Plugin URI: http://eastcoder.com/code/wp-multibyte-patch/
7
  Author: Seisuke Kuraishi
8
  Author URI: http://tinybit.co.jp/
15
  * Multibyte functionality enhancement for the WordPress Japanese package.
16
  *
17
  * @package WP_Multibyte_Patch
18
+ * @version 2.8.2
19
  * @author Seisuke Kuraishi <210pura@gmail.com>
20
+ * @copyright Copyright (c) 2018 Seisuke Kuraishi, Tinybit Inc.
21
  * @license http://opensource.org/licenses/gpl-2.0.php GPLv2
22
  * @link http://eastcoder.com/code/wp-multibyte-patch/
23
  */
219
 
220
  public function trim_multibyte_excerpt( $text = '', $length = 110, $more = ' [&hellip;]', $encoding = 'UTF-8' ) {
221
  $text = strip_shortcodes( $text );
222
+
223
+ if ( function_exists( 'excerpt_remove_blocks' ) )
224
+ $text = excerpt_remove_blocks( $text );
225
+
226
  $text = str_replace( ']]>', ']]&gt;', $text );
227
  $text = strip_tags( $text );
228
  $text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );