WP PLUGIN エスケープ処理の修正
・echo時にエスケープするようメソッド修正 ・HTMLタグないのエスケープをesc_attr()に変更
This commit is contained in:
+7
-11
@@ -16,7 +16,7 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
|
||||
<form action="" method="post">
|
||||
<?php wp_nonce_field( 'sh_options' ); ?>
|
||||
<input id="apop_submit_type" type="hidden" name="apop_submit_type"
|
||||
value="<?php echo esc_html( $submit_type ); ?>">
|
||||
value="<?php echo esc_attr( $submit_type ); ?>">
|
||||
<div class="post-order-box">
|
||||
<div class="list-orders-outer">
|
||||
<div class="list-orders-inner">
|
||||
@@ -27,13 +27,12 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
|
||||
?>
|
||||
<?php include APOP_PLUGIN_PATH . 'template/order_parts_menu.php'; ?>
|
||||
<hr>
|
||||
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p>
|
||||
<div class="sort_box">
|
||||
<?php list( $list, $alert) = APOP_UI::create_search_normal_list( 'normal' ); ?>
|
||||
<p><?php echo esc_html( $alert ); ?></p>
|
||||
<div class="enable_box">
|
||||
<h4>有効</h4>
|
||||
<ul class="post-order-list search_normal_sort">
|
||||
<?php echo $list; ?>
|
||||
<?php APOP_UI::create_search_normal_list( 'normal' ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="disable_box">
|
||||
@@ -42,9 +41,8 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
|
||||
</div>
|
||||
</div>
|
||||
<div class="sort_box">
|
||||
<div class="no_registered_exp">■は未登録項目です。ドラッグして並び順を変更後に「変更を保存」をクリックしてください。</div>
|
||||
<ul class="post-order-list drag_sort">
|
||||
<?php echo APOP_UI::get_all_search_normal_posts( 'normal' ); ?>
|
||||
<?php APOP_UI::get_all_search_normal_posts( 'normal' ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -60,13 +58,12 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
|
||||
?>
|
||||
<?php include APOP_PLUGIN_PATH . 'template/order_parts_menu.php'; ?>
|
||||
<hr>
|
||||
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p>
|
||||
<div class="sort_box">
|
||||
<?php list( $list, $alert) = APOP_UI::create_search_normal_list( 'search' ); ?>
|
||||
<p><?php echo esc_html( $alert ); ?></p>
|
||||
<div class="enable_box">
|
||||
<h4>有効</h4>
|
||||
<ul class="post-order-list search_normal_sort">
|
||||
<?php echo $list; ?>
|
||||
<?php APOP_UI::create_search_normal_list( 'search' ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="disable_box">
|
||||
@@ -75,9 +72,8 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
|
||||
</div>
|
||||
</div>
|
||||
<div class="sort_box">
|
||||
<div class="no_registered_exp">■は未登録項目です。ドラッグして並び順を変更後に「変更を保存」をクリックしてください。</div>
|
||||
<ul class="post-order-list drag_sort">
|
||||
<?php echo APOP_UI::get_all_search_normal_posts( 'search' ); ?>
|
||||
<?php APOP_UI::get_all_search_normal_posts( 'search' ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user