Pz-LinkCard - Version 2.1.3.1

Version Description

Download this release

Release Info

Developer poporon
Plugin Icon 128x128 Pz-LinkCard
Version 2.1.3.1
Comparing to
See all releases

Code changes from version 2.1.3 to 2.1.3.1

Files changed (2) hide show
  1. pz-linkcard.php +13 -1
  2. readme.txt +5 -1
pz-linkcard.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
- Version: 2.1.3
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
@@ -805,8 +805,17 @@ class Pz_LinkCard {
805
 
806
  if (isset($url) && $url <> '') {
807
  $url = html_entity_decode($url);
 
 
 
808
  $url = preg_replace('/^[\s \'\"‘’“”″]*(.*?)[\s \'\"‘’“”″]*$/u', '\1', $url); // 色んな打ち間違え対応
 
 
 
809
  $url = esc_url($url); // プロトコル除外など
 
 
 
810
  switch (isset($this->options['trail-slash']) ? $this->options['trail-slash'] : null) {
811
  case '1': // URLがドメイン名だけの場合、最後のスラッシュを除外する
812
  $array_url = parse_url($url);
@@ -818,6 +827,9 @@ class Pz_LinkCard {
818
  $url = rtrim($url, '/');
819
  break;
820
  }
 
 
 
821
  }
822
  return $url;
823
  }
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
+ Version: 2.1.3.1
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
805
 
806
  if (isset($url) && $url <> '') {
807
  $url = html_entity_decode($url);
808
+ if ($this->options['debug-time']) {
809
+ echo '<!-- Pz-LkC [URL1='.$url.'] /-->'.PHP_EOL;
810
+ }
811
  $url = preg_replace('/^[\s \'\"‘’“”″]*(.*?)[\s \'\"‘’“”″]*$/u', '\1', $url); // 色んな打ち間違え対応
812
+ if ($this->options['debug-time']) {
813
+ echo '<!-- Pz-LkC [URL2='.$url.'] /-->'.PHP_EOL;
814
+ }
815
  $url = esc_url($url); // プロトコル除外など
816
+ if ($this->options['debug-time']) {
817
+ echo '<!-- Pz-LkC [URL3='.$url.'] /-->'.PHP_EOL;
818
+ }
819
  switch (isset($this->options['trail-slash']) ? $this->options['trail-slash'] : null) {
820
  case '1': // URLがドメイン名だけの場合、最後のスラッシュを除外する
821
  $array_url = parse_url($url);
827
  $url = rtrim($url, '/');
828
  break;
829
  }
830
+ if ($this->options['debug-time']) {
831
+ echo '<!-- Pz-LkC [URL4='.$url.'] /-->'.PHP_EOL;
832
+ }
833
  }
834
  return $url;
835
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: poporon
3
  Tags: post, internal link, external link, blogcard, linkcard
4
  Requires at least: 4.3
5
- Tested up to: 4.9.5
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -163,6 +163,10 @@ A7.
163
  5. "Write shortcode and url"
164
 
165
  == Changelog ==
 
 
 
 
166
  Ver2.1.3
167
  * サブメニューの横にリンク切れの件数を表示する設定を追加しました。(Thanks @Oncle1316)
168
  Added: Added setting to display the number of broken links next to the submenu.
2
  Contributors: poporon
3
  Tags: post, internal link, external link, blogcard, linkcard
4
  Requires at least: 4.3
5
+ Tested up to: 4.9.6
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
163
  5. "Write shortcode and url"
164
 
165
  == Changelog ==
166
+ Ver2.1.3.1
167
+ * WordPress 4.9.6 での動作確認。
168
+ Compatible with WordPress 4.9.6
169
+
170
  Ver2.1.3
171
  * サブメニューの横にリンク切れの件数を表示する設定を追加しました。(Thanks @Oncle1316)
172
  Added: Added setting to display the number of broken links next to the submenu.