Changeset 3014777
- Timestamp:
- 12/27/2023 03:53:11 PM (2 years ago)
- Location:
- pz-linkcard/trunk
- Files:
-
- 5 edited
-
lib/pz-linkcard-cacheman-list.php (modified) (1 diff)
-
lib/pz-linkcard-cacheman.php (modified) (1 diff)
-
lib/pz-linkcard-settings.php (modified) (1 diff)
-
pz-linkcard.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pz-linkcard/trunk/lib/pz-linkcard-cacheman-list.php
r3013786 r3014777 295 295 $is_samepage = $url_info['is_samepage']; // 同一ページ 296 296 297 // 表示用のURLを作成298 $html_url = null;297 // URLの警告マーク 298 $html_url_error = ''; 299 299 if ($data->alive_result < 100 || $data->alive_result >= 400 ) { 300 if ($data->no_failure ) { 301 $html_url .= '<span class="pz-lkc-man-body-url-error-ignore" title="'.__('The latest HTTP code is in error, but ignore it.', $this->text_domain ).'">'.__('⚠️', $this->text_domain ).'</span> '; 300 if ($data->no_failure ) { // エラー無視が有効か 301 $temp_icon = __('⚠️', $this->text_domain ); // ⚠️ 302 $temp_class = 'pz-lkc-man-body-url-error-ignore'; // エラー無視 303 $temp_title = __('The latest HTTP code is in error, but ignore it.', $this->text_domain ); 302 304 } else { 303 $html_url .= '<span class="pz-lkc-man-body-url-error" title="'.__('The latest HTTP code is in error. You can change it to ignore the error from the edit screen.', $this->text_domain ).'">'.__('⛔️', $this->text_domain ).'</span> '; 304 } 305 } 305 $temp_icon = __('⛔️', $this->text_domain ); // ⛔️エラー 306 $temp_class = 'pz-lkc-man-body-url-error'; // エラー 307 $temp_title = __('The latest HTTP code is in error. You can change it to ignore the error from the edit screen.', $this->text_domain ); 308 } 309 $html_url_error = '<span class="'.$temp_class.'" title="'.$temp_title.'">'.$temp_icon.'</span> '; 310 } 311 312 // 表示用のURL 306 313 if ($is_internal ) { 307 $html_url .= '<a href="'.esc_url($url ).'" title="'.esc_url($url ).'" rel="internal" target="_self">'; 314 $temp_href = esc_url($url ); 315 $temp_rel = 'internal'; 316 $temp_target = '_self'; 308 317 } else { 309 $html_url .= '<a href="'.esc_url($url ).'" title="'.esc_url($url ).'" rel="external noopenner noreferrer" target="_blank">'; 310 } 311 $html_url .= esc_url($this->pz_DecodeURL($url ) ).'</a>'; 318 $temp_href = esc_url($url ); 319 $temp_rel = 'external noopenner noreferrer'; 320 $temp_target = '_blank'; 321 } 322 // $html_url = '<a href="'.$temp_href.'" title="'.$temp_href.'" rel="'.$temp_rel.'" target="'.$temp_target.'">'.esc_url($this->pz_DecodeURL($url ) ).'</a>'; 323 $html_url = '<span title="'.$temp_href.'">'.esc_url($this->pz_DecodeURL($url ) ).'</span>'; 312 324 313 325 // タイトル -
pz-linkcard/trunk/lib/pz-linkcard-cacheman.php
r3013786 r3014777 9 9 <input type="text" class="pz-lkc-display pz-lkc-hide" name="pz-lkc-develop" value="<?php echo $this->options['develop-mode']; ?>" /> 10 10 <?php 11 11 12 $data = null; 12 13 if (isset($_REQUEST['update'] ) ) { -
pz-linkcard/trunk/lib/pz-linkcard-settings.php
r3013786 r3014777 74 74 $changelog = trim($changelog ); 75 75 $changelog = esc_html($changelog ); 76 77 76 $changelog = preg_replace('/^\* /mi', '* ', $changelog); 78 77 $changelog = preg_replace('/^ /mi', '  ', $changelog); 79 80 78 $changelog = preg_replace('/= (.*) =\n/i', '<h4>'.__('Version', $this->text_domain ).' $1</h4>', $changelog); 81 79 $changelog = preg_replace('/(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9_]+)/i', '<a href="http://www.twitter.com/$1" rel="external noopenner noreferrer" target="_blank">@$1</a>', $changelog); -
pz-linkcard/trunk/pz-linkcard.php
r3013786 r3014777 5 5 Plugin URI: http://poporon.poponet.jp/pz-linkcard 6 6 Description: リンクをカード形式で表示します。 7 Version: 2.5.0 7 Version: 2.5.0.1 8 8 Author: Poporon 9 9 Author URI: http://poporon.poponet.jp … … 17 17 protected $defaults = 18 18 array( 19 'plugin-version' => '2.5.0 ',19 'plugin-version' => '2.5.0.1', 20 20 'plugin-name' => 'Pz-LinkCard', 21 21 'plugin-abbreviation' => 'Pz-LkC', … … 818 818 // サムネイル取得WebAPI 819 819 if ($this->options['thumbnail-api'] ) { 820 $temp = $this->options['thumbnail-api'];820 $temp = $this->options['thumbnail-api']; 821 821 if (strstr($temp, '%' ) <> '' ) { 822 822 $temp = preg_replace('/%TITLE%/', $title, $temp ); … … 827 827 } 828 828 $html_thumbnail = '<img class="lkc-thumbnail-img" src="'.$temp.'" alt="'.$thumbnail_alt.'" />'; 829 830 829 } 831 830 } … … 848 847 if ($this->options['favicon-api'] ) { 849 848 $temp = $this->options['favicon-api']; 850 if (strstr($temp, '%' ) === true ) { 849 if (strstr($temp, '%' ) <> '' ) { 850 $temp = preg_replace('/%TITLE%/', $title, $temp ); 851 $temp = preg_replace('/%SITE_NAME%/', $site_name, $temp ); 851 852 $temp = preg_replace('/%DOMAIN_URL%/', $domain_url, $temp ); 852 853 $temp = preg_replace('/%DOMAIN%/', $domain, $temp ); -
pz-linkcard/trunk/readme.txt
r3013786 r3014777 152 152 == Changelog == 153 153 154 = 2.5.0.1 = 155 * カード管理画面にて外部サイトへのリンクを外しました。 156 Fixed: Fixed to remove the link from the URL as a response to the vulnerability. 157 * サイトアイコンが取得できない不具合を修正。(Thanks 澤田 芳弘 @SWD on x.com) 158 Fixed: Fixed a bug that site icons could not be retrieved. 159 154 160 = 2.5.0 = 155 161 * WordPress 6.4.2 での動作確認。 … … 161 167 * 文字コードの判定に失敗すると異常終了になってしまう不具合を修正。 162 168 Fixed: Fixed a bug that caused abnormal termination when character code determination failed. 163 * 設定画面の「外部リンク」タブ及び「内部リンク」タブの「代替テキスト」にパラメータを追加。(Thanks 澤田 芳弘 @SWD on Twitter)169 * 設定画面の「外部リンク」タブ及び「内部リンク」タブの「代替テキスト」にパラメータを追加。(Thanks 澤田 芳弘 @SWD on x.com) 164 170 Added: Added a parameter to "Alternative Text" in the "External Links" and "Internal Links" tabs of the Settings screen. 165 171 … … 173 179 * WordPress 6.3.1 での動作確認。 174 180 Compatible with WordPress 6.3.1. 175 * カード管理画面にてSQLの構文エラーがあったのを修正。(Thanks @in_seki on Twitter)181 * カード管理画面にてSQLの構文エラーがあったのを修正。(Thanks @in_seki on x.com) 176 182 Fixed: Fixed SQL syntax error in card management screen. 177 * 設定画面の「外部リンク」タブに「サムネイル」と「サイトアイコン」の「代替テキスト」の設定を追加。(Thanks @SWD on Twitter)183 * 設定画面の「外部リンク」タブに「サムネイル」と「サイトアイコン」の「代替テキスト」の設定を追加。(Thanks @SWD on x.com) 178 184 Added: Added "ALT Text" settings for "Thumbnail" and "Site Icon" to the "External Links" tab of the Settings page. 179 * 設定画面の「内部リンク」タブに「サムネイル」と「サイトアイコン」の「代替テキスト」の設定を追加。(Thanks @SWD on Twitter)185 * 設定画面の「内部リンク」タブに「サムネイル」と「サイトアイコン」の「代替テキスト」の設定を追加。(Thanks @SWD on x.com) 180 186 Added: Added "ALT Text" settings for "Thumbnail" and "Site Icon" to the "Internal Links" tab of the Settings page. 181 187 * 設定画面の「Twitter」のシェア数の単位を「Posts」と「Tweets」から選べる設定を追加。
Note: See TracChangeset
for help on using the changeset viewer.