diff --git a/class/mtee.php b/class/mtee.php
index 8f6bd46..5dcf31a 100644
--- a/class/mtee.php
+++ b/class/mtee.php
@@ -93,7 +93,7 @@ if (!class_exists('MTEE')) {
}
}
if (!empty($id)) {
- return '';
+ return '
';
}
}
diff --git a/class/mtee_canonical_setting.php b/class/mtee_canonical_setting.php
index f4d42bf..bedf5dc 100644
--- a/class/mtee_canonical_setting.php
+++ b/class/mtee_canonical_setting.php
@@ -124,8 +124,8 @@ placeholder="' . $this->set_default_post_canonical_url($post->ID) . '" />
if (isset($tag->term_id) && empty($canonical_url)) {
$placeholder = $this->set_default_tax_canonical_url($tag->term_id, $tag->taxonomy);
}
- $add_meta = '';
+ $add_meta = '';
return str_replace('##CONTENTS##', $add_meta, $form);
}
diff --git a/class/mtee_meta_output_canonical.php b/class/mtee_meta_output_canonical.php
index ef6fb58..a529fbf 100644
--- a/class/mtee_meta_output_canonical.php
+++ b/class/mtee_meta_output_canonical.php
@@ -63,7 +63,7 @@ if (!class_exists('mtee_meta_output_canonical')) {
}
if ($canonical) {
- return '' . PHP_EOL;
+ return '' . PHP_EOL;
}
}
diff --git a/class/mtee_meta_output_keydesc.php b/class/mtee_meta_output_keydesc.php
index da9d976..de54c09 100644
--- a/class/mtee_meta_output_keydesc.php
+++ b/class/mtee_meta_output_keydesc.php
@@ -57,8 +57,8 @@ if (!class_exists('mtee_meta_output_keydesc')) {
$type = 'custom_tax';
}
$meta_data = array(
- MTEE_CONFIG::MTEE_NAME_KEYWORDS => str_replace('、', ',', $this->post_output_get_meta_keywords($type)),
- MTEE_CONFIG::MTEE_NAME_DESCRIPTION => $this->post_output_get_meta_desc($type),
+ MTEE_CONFIG::MTEE_NAME_KEYWORDS => esc_html(str_replace('、', ',', $this->post_output_get_meta_keywords($type))),
+ MTEE_CONFIG::MTEE_NAME_DESCRIPTION => esc_html($this->post_output_get_meta_desc($type)),
);
return $this->create_meta_tags($meta_data);
}
@@ -82,8 +82,8 @@ if (!class_exists('mtee_meta_output_keydesc')) {
public function create_default_keywords_description(): array {
$this->description .= $this->create_default_description();
$meta_data = array(
- MTEE_CONFIG::MTEE_NAME_KEYWORDS => implode(',', $this->create_default_keywords()),
- MTEE_CONFIG::MTEE_NAME_DESCRIPTION => $this->description,
+ MTEE_CONFIG::MTEE_NAME_KEYWORDS => esc_html(implode(',', $this->create_default_keywords())),
+ MTEE_CONFIG::MTEE_NAME_DESCRIPTION => esc_html($this->description),
);
return $this->create_meta_tags($meta_data);
}
diff --git a/class/mtee_meta_output_ogp.php b/class/mtee_meta_output_ogp.php
index 5d66bd3..8f83d84 100644
--- a/class/mtee_meta_output_ogp.php
+++ b/class/mtee_meta_output_ogp.php
@@ -49,17 +49,17 @@ if (!class_exists('mtee_meta_output_ogp')) {
public function set_ogp_tag() {
- $tags = '' . PHP_EOL;
- $tags .= '' . PHP_EOL;
- $tags .= '' . PHP_EOL;
- $tags .= '' . PHP_EOL;
+ $tags = '' . PHP_EOL;
+ $tags .= '' . PHP_EOL;
+ $tags .= '' . PHP_EOL;
+ $tags .= '' . PHP_EOL;
if (!empty($this->ogp_img)) {
- $tags .= '' . PHP_EOL;
+ $tags .= '' . PHP_EOL;
}
- $tags .= '' . PHP_EOL;
+ $tags .= '' . PHP_EOL;
// $tags .= '' . PHP_EOL;
// $tags .= '' . PHP_EOL;
- $tags .= '' . "\n";
+ $tags .= '' . "\n";
return $tags;
}
diff --git a/class/mtee_noindexnofolow_setting.php b/class/mtee_noindexnofolow_setting.php
index 09f10e6..0ee3519 100644
--- a/class/mtee_noindexnofolow_setting.php
+++ b/class/mtee_noindexnofolow_setting.php
@@ -53,15 +53,15 @@ if (!class_exists('mtee_noindexnofolow_setting')) {
| Canonical URL | Canonical URL | diff --git a/template/pages_meta.php b/template/pages_meta.php index dd14e82..1d2534b 100644 --- a/template/pages_meta.php +++ b/template/pages_meta.php @@ -1,21 +1,18 @@ |
|---|
| meta keywords |
+ value=""
+ placeholder="キーワード1,キーワード2,キーワード3">
キーワードはカンマ(,)区切りで入力してください |
||
|---|---|---|---|
| meta description | meta keywords |
+ value=""
+ placeholder="キーワード1,キーワード2,キーワード3">
キーワードはカンマ(,)区切りで入力してください |
@@ -47,7 +41,7 @@ $description = esc_html($opt['top_page']['description'] ?? '');
meta description | diff --git a/template/pages_ogp.php b/template/pages_ogp.php index 418de09..117a1c4 100644 --- a/template/pages_ogp.php +++ b/template/pages_ogp.php @@ -1,28 +1,24 @@ |
| OGP title | + value=""> | ||
|---|---|---|---|
| OGP description | + value=""> | ||
| OGP Image |
-
+
get_ogp_img('top_page'); ?>
@@ -33,11 +29,6 @@ $ogp_img = esc_html($opt['top_page']['ogp_img'] ?? '');
0): ?>
カスタム投稿アーカイブ-
@@ -49,23 +40,23 @@ $ogp_img = esc_html($opt['top_page']['ogp_img'] ?? '');
| ||
| OGP description | + value=""> | ||
| OGP Image |
-
+ value=""/>
get_ogp_img('custom_post', $custom_post); ?>
@@ -76,6 +67,6 @@ $ogp_img = esc_html($opt['top_page']['ogp_img'] ?? '');
|