From 38b18e7150f7d0d11997c1938fe7ebb0dba5a79b Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 20 Jul 2024 18:17:53 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E9=96=8B=E7=94=A8=E3=81=AB=E3=82=BF?= =?UTF-8?q?=E3=82=A4=E3=83=88=E3=83=AB=E7=AD=89=E4=BF=AE=E6=AD=A3=E3=80=81?= =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=E6=9D=A1=E4=BB=B6=E3=81=AE=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/class.conv_protection_txt.php | 10 +++++----- readme.txt | 2 +- template/conv_protection_txt_form.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/class/class.conv_protection_txt.php b/class/class.conv_protection_txt.php index 4470ba2..6d2f065 100644 --- a/class/class.conv_protection_txt.php +++ b/class/class.conv_protection_txt.php @@ -15,8 +15,8 @@ if ( ! class_exists( 'conv_protection_txt' ) ) { public function add_pages() { add_menu_page( - '限定公開ページテキストカスタマイズ', - '限定公開ページテキストカスタマイズ', + 'Convert Protection Text', + 'Convert Protection Text', 'level_8', __FILE__, array( @@ -48,17 +48,17 @@ if ( ! class_exists( 'conv_protection_txt' ) ) { //パスワード保護時のメッセージ public function protect_password_form( $form_text ): string { $opt = get_option( 'conv_protection_options' ); - if ( isset( $opt['text'] ) && ! empty( $opt['text'] ) ) { + if (! empty( $opt['text'] )) { $alert_text = $opt['text']; } else { $alert_text = conv_protection_txt_settings::ALERT_TEXT; } - if ( isset( $opt['label'] ) && ! empty( $opt['label'] ) ) { + if (! empty( $opt['label'] )) { $btn_label = $opt['label'] . ' : '; } else { $btn_label = conv_protection_txt_settings::BTN_LABEL . ' : '; } - if ( isset( $opt['btn'] ) && ! empty( $opt['btn'] ) ) { + if (! empty( $opt['btn'] )) { $btn_text = $opt['btn']; } else { $btn_text = conv_protection_txt_settings::BTN_TEXT; diff --git a/readme.txt b/readme.txt index 02dd06f..ef8cef4 100644 --- a/readme.txt +++ b/readme.txt @@ -48,7 +48,7 @@ WordPressで記事(ページ)の限定公開(「パスワード保護」 == Screenshots == screenshot-1.png - +screenshot-2.png == Changelog == = 1.0.0 = diff --git a/template/conv_protection_txt_form.php b/template/conv_protection_txt_form.php index f27535f..a22e2fe 100644 --- a/template/conv_protection_txt_form.php +++ b/template/conv_protection_txt_form.php @@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) { } // Exit if accessed directly ?>
-

限定公開ページテキストカスタマイズ

+

Convert Protection Text - 限定公開ページテキストカスタマイズ