From 2eea8e3caeb372d790565990bf406e42a13e71b0 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 17 Jun 2021 16:44:36 +0900 Subject: [PATCH] =?UTF-8?q?WP=20PLUGIN=20MTEE(Meta=20Tag=20etc=20Extend)?= =?UTF-8?q?=20=E8=A1=A8=E7=A4=BA=E3=81=AE=E3=82=A8=E3=82=B9=E3=82=B1?= =?UTF-8?q?=E3=83=BC=E3=83=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ・echo時データのエスケープ処理追加 --- template/index.php | 29 ++++++++++------------------- template/pages_canonical.php | 8 ++++---- template/pages_meta.php | 14 +++++++------- template/pages_noindexnofollow.php | 10 +++++----- template/pages_ogp.php | 20 ++++++++++---------- trait/mtee_utils.php | 4 ++++ 6 files changed, 40 insertions(+), 45 deletions(-) diff --git a/template/index.php b/template/index.php index f404dc4..a093630 100644 --- a/template/index.php +++ b/template/index.php @@ -24,7 +24,7 @@ $rss_disabled = $this->get_key_setting('rss_disabled');
- +

メタキーワード・ディスクリプション

@@ -38,11 +38,11 @@ $rss_disabled = $this->get_key_setting('rss_disabled');

meta keywords テンプレート設定

個別設定していない投稿やカテゴリー等は、このテンプレートを適用します。

set_escape_str($opt, 'keywords_tmp', 'post'); + $page_meta_keywords_tmp = $this->set_escape_str($opt, 'keywords_tmp', 'page'); + $cat_meta_keywords_tmp = $this->set_escape_str($opt, 'keywords_tmp', 'category'); + $tag_meta_keywords_tmp = $this->set_escape_str($opt, 'keywords_tmp', 'tag'); + $tax_meta_keywords_tmp = $this->set_escape_str($opt, 'keywords_tmp', 'tax'); ?>
投稿
@@ -97,10 +97,10 @@ $rss_disabled = $this->get_key_setting('rss_disabled');

meta description テンプレート設定

個別設定していない投稿やカテゴリー等は、このテンプレートを適用します。

set_escape_str($opt, 'description_tmp', 'page'); + $cat_meta_desc_tmp = $this->set_escape_str($opt, 'description_tmp', 'category'); + $tag_meta_desc_tmp = $this->set_escape_str($opt, 'description_tmp', 'tag'); + $tax_meta_desc_tmp = $this->set_escape_str($opt, 'description_tmp', 'tax'); ?>
ページ/投稿
@@ -184,15 +184,6 @@ $rss_disabled = $this->get_key_setting('rss_disabled'); value="1">出力しない
-
-

Canonical URL 出力

- -

WordPressバージョン情報