Pz-LinkCard - Version 1.6.8

Version Description

  • Compatible with WordPress 4.5.2.
  • Fixed: Fixed a notice.
  • Fixed: Fixed an error. In had failed Perth META tags.
  • Fixed: Fixed so as not to use PHP-short-tags.

  • WordPress 4.5.2

  • (@junya_0606)

  • METAFatal(Thanks @misoji_13 , @ryu-blacknd)

  • PHP(Thanks @toru1231)

Download this release

Release Info

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

Code changes from version 1.6.7 to 1.6.8

Files changed (3) hide show
  1. pz-linkcard-cacheman.php +3 -3
  2. pz-linkcard.php +7 -6
  3. readme.txt +12 -1
pz-linkcard-cacheman.php CHANGED
@@ -208,9 +208,9 @@ $count_external = $result->count;
208
  ?>
209
 
210
  <ul class='subsubsub'>
211
- <li class="all"><a href="?page=pz-linkcard-cache&link_type=all&orderby=regist&order=desc" <?php if ($link_type == 'all') echo 'class="current"'; ?>><? _e('All', $this->text_domain); ?> <span class="count">(<?php echo $count_all; ?>)</span></a> |</li>
212
- <li class="all"><a href="?page=pz-linkcard-cache&link_type=internal&orderby=regist&order=desc" <?php if ($link_type == 'internal') echo 'class="current"'; ?>><? _e('Internal', $this->text_domain); ?> <span class="count">(<?php echo $count_internal; ?>)</span></a> |</li>
213
- <li class="all"><a href="?page=pz-linkcard-cache&link_type=external&orderby=regist&order=desc" <?php if ($link_type == 'external') echo 'class="current"'; ?>><? _e('External', $this->text_domain); ?> <span class="count">(<?php echo $count_external; ?>)</span></a></li>
214
  </ul>
215
 
216
  <form id="posts-filter" action="" method="post">
208
  ?>
209
 
210
  <ul class='subsubsub'>
211
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=all&orderby=regist&order=desc" <?php if ($link_type == 'all') echo 'class="current"'; ?>><?php _e('All', $this->text_domain); ?> <span class="count">(<?php echo $count_all; ?>)</span></a> |</li>
212
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=internal&orderby=regist&order=desc" <?php if ($link_type == 'internal') echo 'class="current"'; ?>><?php _e('Internal', $this->text_domain); ?> <span class="count">(<?php echo $count_internal; ?>)</span></a> |</li>
213
+ <li class="all"><a href="?page=pz-linkcard-cache&link_type=external&orderby=regist&order=desc" <?php if ($link_type == 'external') echo 'class="current"'; ?>><?php _e('External', $this->text_domain); ?> <span class="count">(<?php echo $count_external; ?>)</span></a></li>
214
  </ul>
215
 
216
  <form id="posts-filter" action="" method="post">
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: 1.6.7
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
@@ -109,7 +109,7 @@ class Pz_LinkCard {
109
  'presence' => null,
110
  'plugin-link' => null,
111
  'plugin-name' => 'Pz-LinkCard',
112
- 'plugin-version' => '1.6.7',
113
  'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
114
  'pz-hbc-options' => null,
115
  'debug-time' => null
@@ -668,14 +668,14 @@ class Pz_LinkCard {
668
 
669
  // サイト名称を使わない場合、ドメイン名で上書き
670
  $site_title = '';
671
- if (is_null($this->options['use-sitename']) || $site_name == '') {
672
- $site_name = $domain;
673
- } else {
674
  $c_site_name = $site_name;
675
  $site_name = mb_strimwidth($site_name, 0, (isset($this->options['trim-sitename']) ? $this->options['trim-sitename'] : $this->defaults['trim-sitename'] ) , '...');
676
  if ($site_name <> $c_site_name) {
677
  $site_title = ' title="'.$c_site_name.'"';
678
  }
 
 
679
  }
680
 
681
  // リンク先URL
@@ -953,8 +953,9 @@ class Pz_LinkCard {
953
  }
954
 
955
  function pz_GetMeta($html, $tags = null, $clear = false) {
956
- if ($clear == true) {
957
  $tags = null;
 
958
  }
959
 
960
  // TITLEタグ
3
  Plugin Name: Pz-LinkCard
4
  Plugin URI: http://poporon.poponet.jp/pz-linkcard
5
  Description: リンクをカード形式で表示します。
6
+ Version: 1.6.8
7
  Author: poporon
8
  Author URI: http://poporon.poponet.jp
9
  License: GPLv2 or later
109
  'presence' => null,
110
  'plugin-link' => null,
111
  'plugin-name' => 'Pz-LinkCard',
112
+ 'plugin-version' => '1.6.8',
113
  'plugin-url' => 'http://poporon.poponet.jp/pz-linkcard',
114
  'pz-hbc-options' => null,
115
  'debug-time' => null
668
 
669
  // サイト名称を使わない場合、ドメイン名で上書き
670
  $site_title = '';
671
+ if ((isset($this->options['use-sitename']) ? $this->options['use-sitename'] : null) && $site_name) {
 
 
672
  $c_site_name = $site_name;
673
  $site_name = mb_strimwidth($site_name, 0, (isset($this->options['trim-sitename']) ? $this->options['trim-sitename'] : $this->defaults['trim-sitename'] ) , '...');
674
  if ($site_name <> $c_site_name) {
675
  $site_title = ' title="'.$c_site_name.'"';
676
  }
677
+ } else {
678
+ $site_name = $domain;
679
  }
680
 
681
  // リンク先URL
953
  }
954
 
955
  function pz_GetMeta($html, $tags = null, $clear = false) {
956
+ if ($clear == true || !isset($tags)) {
957
  $tags = null;
958
+ $tags = array('none' => 'none');
959
  }
960
 
961
  // TITLEタグ
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.4.2
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -164,6 +164,17 @@ WordPressピンバックは記事中にリンクを直接記述しないと飛
164
 
165
  == Changelog ==
166
 
 
 
 
 
 
 
 
 
 
 
 
167
  = 1.6.7 =
168
  * Added: Added a method of article excerpt internal link in setting.
169
 
2
  Contributors: poporon
3
  Tags: post, internal link, external link, blogcard, linkcard
4
  Requires at least: 4.3
5
+ Tested up to: 4.5.2
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
164
 
165
  == Changelog ==
166
 
167
+ = 1.6.8 =
168
+ * Compatible with WordPress 4.5.2.
169
+ * Fixed: Fixed a notice.
170
+ * Fixed: Fixed an error. In had failed Perth META tags.
171
+ * Fixed: Fixed so as not to use PHP-short-tags.
172
+
173
+ * WordPress 4.5.2 での動作確認。
174
+ * 警告エラーを修正しました。(@junya_0606)
175
+ * 指定したリンク先によってはMETAタグを内部テーブルに展開するのに失敗してFatalエラーが出るのを修正。(Thanks @misoji_13 , @ryu-blacknd)
176
+ * カード管理画面のPHPショートタグを使用しないように修正しました。(Thanks @toru1231)
177
+
178
  = 1.6.7 =
179
  * Added: Added a method of article excerpt internal link in setting.
180