Speech bubble (ふきだしプラグイン) - Version 1.0.2

Version Description

Make back up of added images by yourself.

Download this release

Release Info

Developer snb arisoude-nakatta
Plugin Icon wp plugin Speech bubble (ふきだしプラグイン)
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (3) hide show
  1. classes/SnbSpeechBubble.php +8 -5
  2. readme.txt +6 -1
  3. speech-bubble.php +4 -3
classes/SnbSpeechBubble.php CHANGED
@@ -171,11 +171,14 @@ EOD;
171
  $match_subtype = preg_replace( '/(\s| )/', '' , $check_arguments );
172
  $match_subtype = str_replace( array( '\r\n', '\n', '\r'), '', $match_subtype );
173
 
174
- //subtypeが存在するかを確認して,存在しなければsubtype_missingを入力
175
- if( FALSE === in_array( $match_subtype, $this->sb_reg_subtype ) ) {
176
- $match_subtype = self::SB_ALERT_SUBTYPE_MISSING;
177
- }
178
-
 
 
 
179
  return $match_subtype;
180
  }
181
 
171
  $match_subtype = preg_replace( '/(\s| )/', '' , $check_arguments );
172
  $match_subtype = str_replace( array( '\r\n', '\n', '\r'), '', $match_subtype );
173
 
174
+ $check_res = array_key_exists( $match_subtype, $this->sb_asc_subtype );
175
+
176
+ //subtypeが存在するかを確認して,存在しなければsubtype_missingを入力
177
+ if( TRUE === $check_res ) {
178
+ $match_subtype = $this->sb_asc_subtype[ $match_subtype ];
179
+ } elseif ( FALSE === $check_res ) {
180
+ $match_subtype = SB_ALERT_SUBTYPE_MISSING;
181
+ }
182
  return $match_subtype;
183
  }
184
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: snb arisoude-nakatta,Mamoru Fukuda
3
  Tags:Speech Bubble Posts
4
  Requires at least: 3.7.1
5
  Tested up to: 3.7.1
6
- Stable tag: 1.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -184,6 +184,11 @@ Make back up of added images by yourself.
184
 
185
  == Changelog ==
186
 
 
 
 
 
 
187
  = var 1.0.0 - Newly created =
188
  <ul>
189
  <li>9 design patterns are available</li>
3
  Tags:Speech Bubble Posts
4
  Requires at least: 3.7.1
5
  Tested up to: 3.7.1
6
+ Stable tag: 1.0.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
184
 
185
  == Changelog ==
186
 
187
+ = var 1.0.2 - Bug Fix =
188
+ <ul>
189
+ <li>subtype L1,R1,L2,R2 and left1, rigth1, left2, right2 were unavailable in single shortcode.</li>
190
+ </ul>
191
+
192
  = var 1.0.0 - Newly created =
193
  <ul>
194
  <li>9 design patterns are available</li>
speech-bubble.php CHANGED
@@ -1,8 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: Speech bubble
4
- Description: Speech bubble (ふきだしプラグイン) can easily add speech bubble ornament in your post, without direct HTML&CSS coding. ふきだしプラグインは簡単に記事にふきだしを追加することが可能です。ショートコードを用いるため直接的なHTMLとCSSのコーディングは不要です。
5
- Version: 1.0
 
6
  Author: Masashi Sonobe, Mamoru Fukuda
7
  License: GPLv2 or later
8
  */
1
  <?php
2
  /*
3
+ Plugin Name: Speech bubble (ふきだしプラグイン)
4
+ Description: Speech bubble (ふきだしプラグイン) can easily add speech bubble ornament in your post, without direct HTML&CSS coding.
5
+ ふきだしプラグインは簡単に記事にふきだしを追加することが可能です。ショートコードを用いるため直接的なHTMLとCSSのコーディングは不要です。
6
+ Version: 1.0.2
7
  Author: Masashi Sonobe, Mamoru Fukuda
8
  License: GPLv2 or later
9
  */