WP PLUGIN エスケープ処理の修正
・echo時にエスケープするようメソッド修正 ・HTMLタグないのエスケープをesc_attr()に変更
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
<?php foreach ( $tax_lists as $tax_key => $tax_list ) : ?>
|
||||
<div class="list-orders-outer">
|
||||
<?php if ( count( $tax_list ) > 0 ): ?>
|
||||
<div class="no_registered_exp">■は未登録項目です。ドラッグして並び順を変更後に「変更を保存」をクリックしてください。</div>
|
||||
<?php foreach ( $tax_list as $tax_data ): ?>
|
||||
<div class="list-orders-inner">
|
||||
<h3><?php echo esc_html( $tax_data->name ); ?></h3>
|
||||
@@ -15,33 +14,35 @@
|
||||
}
|
||||
?>
|
||||
<ul class="sort_menu_list"
|
||||
data-order_target="<?php echo esc_html( $order_target ); ?>">
|
||||
data-order_target="<?php echo esc_attr( $order_target ); ?>">
|
||||
<li>
|
||||
<label>
|
||||
<input class="sort_menu" type="radio"
|
||||
name="_apop_tax_sort_type[<?php echo esc_html( $tax_data->term_id ); ?>]"
|
||||
name="_apop_tax_sort_type[<?php echo esc_attr( $tax_data->term_id ); ?>]"
|
||||
value="1"<?php checked( $order_target, 1 ); ?>>ドラッグソート</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<input class="sort_menu" type="radio"
|
||||
name="_apop_tax_sort_type[<?php echo esc_html( $tax_data->term_id ); ?>]"
|
||||
name="_apop_tax_sort_type[<?php echo esc_attr( $tax_data->term_id ); ?>]"
|
||||
value="2"<?php checked( $order_target, 2 ); ?>>標準+カスタムフィールドソート</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="sort_box">
|
||||
<hr>
|
||||
<p>並べ替えを登録するには「変更を保存」をクリックしてください</p>
|
||||
<ul class="post-order-list drag_sort">
|
||||
<?php echo APOP_UI::create_order_list( $tax_data, $tax_key ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sort_box">
|
||||
<?php list( $list, $alert ) = APOP_UI::create_search_normal_list( 'tax', $tax_data->term_id ); ?>
|
||||
<p><?php echo esc_html( $alert ); ?></p>
|
||||
<hr>
|
||||
<p>並べ替えを登録するには「変更を保存」をクリックしてください</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( 'tax', $tax_data->term_id ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="disable_box">
|
||||
|
||||
Reference in New Issue
Block a user