Compare commits

...

2 Commits

Author SHA1 Message Date
nobu ff5d4df930 Version修正 2024-07-20 18:51:36 +09:00
nobu 38b18e7150 公開用にタイトル等修正、不要な条件の削除 2024-07-20 18:20:39 +09:00
3 changed files with 9 additions and 8 deletions
+5 -5
View File
@@ -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;
+3 -2
View File
@@ -48,10 +48,11 @@ WordPressで記事(ページ)の限定公開(「パスワード保護」
== Screenshots ==
screenshot-1.png
screenshot-2.png
screenshot-3.png
== Changelog ==
= 1.0.0 =
= 1.0.1 =
初回リリース
== Upgrade Notice ==
+1 -1
View File
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
} // Exit if accessed directly
?>
<div class="wrap">
<h2>限定公開ページテキストカスタマイズ</h2>
<h2>Convert Protection Text - 限定公開ページテキストカスタマイズ</h2>
<form action="" method="post">
<?php
wp_nonce_field( 'conv_options' );