WP PLUGIN 申請指摘事項の修正
・$_POSTのサニタイズ ・echoのエスケープ ・readmeの修正
This commit is contained in:
+2
-2
@@ -42,7 +42,7 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
|
||||
</div>
|
||||
<div class="sort_box">
|
||||
<?php echo APOP_UI::none_registered_alert_msg(); ?>
|
||||
<ul class="post-order-list">
|
||||
<ul class="post-order-list drag_sort">
|
||||
<?php echo APOP_UI::get_all_search_normal_posts( 'normal' ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -75,7 +75,7 @@ $submit_type = APOP_UI::input_post_filter( 'apop_submit_type', 'str' );
|
||||
</div>
|
||||
<div class="sort_box">
|
||||
<?php echo APOP_UI::none_registered_alert_msg(); ?>
|
||||
<ul class="post-order-list">
|
||||
<ul class="post-order-list drag_sort">
|
||||
<?php echo APOP_UI::get_all_search_normal_posts( 'search' ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php if ( isset( $order_target, $order_target_type ) ): ?>
|
||||
<ul class="sort_menu_list"
|
||||
data-order_target="<?php echo $order_target; ?>">
|
||||
data-order_target="<?php echo esc_html($order_target); ?>">
|
||||
<li><label>
|
||||
<input class="sort_menu" type="radio" name="<?php echo $order_target_type; ?>"
|
||||
<input class="sort_menu" type="radio" name="<?php echo esc_html($order_target_type); ?>"
|
||||
value="1"<?php checked( $order_target, 1 ); ?>>標準+カスタムフィールドソート</label></li>
|
||||
<li><label>
|
||||
<input class="sort_menu" type="radio" name="<?php echo $order_target_type; ?>"
|
||||
<input class="sort_menu" type="radio" name="<?php echo esc_html($order_target_type); ?>"
|
||||
value="2"<?php checked( $order_target, 2 ); ?>>ドラッグソート</label></li>
|
||||
</ul>
|
||||
<?php endif;
|
||||
@@ -5,7 +5,7 @@
|
||||
<?php echo APOP_UI::none_registered_alert_msg(); ?>
|
||||
<?php foreach ( $tax_list as $tax_data ): ?>
|
||||
<div class="list-orders-inner">
|
||||
<h3><?php echo $tax_data->name; ?></h3>
|
||||
<h3><?php echo esc_html($tax_data->name); ?></h3>
|
||||
<?php
|
||||
$order_target_data = get_option( '_apop_tax_sort_type' );
|
||||
if ( isset( $order_target_data[ $tax_data->term_id ] ) ) {
|
||||
@@ -15,23 +15,23 @@
|
||||
}
|
||||
?>
|
||||
<ul class="sort_menu_list"
|
||||
data-order_target="<?php echo $order_target; ?>">
|
||||
data-order_target="<?php echo esc_html($order_target); ?>">
|
||||
<li>
|
||||
<label>
|
||||
<input class="sort_menu" type="radio"
|
||||
name="_apop_tax_sort_type[<?php echo $tax_data->term_id; ?>]"
|
||||
name="_apop_tax_sort_type[<?php echo esc_html($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 $tax_data->term_id; ?>]"
|
||||
name="_apop_tax_sort_type[<?php echo esc_html($tax_data->term_id); ?>]"
|
||||
value="2"<?php checked( $order_target, 2 ); ?>>標準+カスタムフィールドソート</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="sort_box">
|
||||
<ul class="post-order-list">
|
||||
<ul class="post-order-list drag_sort">
|
||||
<?php echo APOP_UI::create_order_list( $tax_data, $tax_key ); ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<li>
|
||||
<label>
|
||||
<input class="per_page_search" type="radio" name="_apop_per_page[search]"
|
||||
value="default"<?php checked( $per_page_data['_per_page'], 'default' ); ?>>表示設定に従う(<?php echo $default_per_page; ?>
|
||||
value="default"<?php checked( $per_page_data['_per_page'], 'default' ); ?>>表示設定に従う(<?php echo esc_html($default_per_page); ?>
|
||||
件)</label>
|
||||
</li>
|
||||
<li><label>
|
||||
@@ -27,10 +27,10 @@
|
||||
<li>
|
||||
<label><input class="per_page_search" type="radio"
|
||||
name="_apop_per_page[search]"
|
||||
value=""<?php echo $per_page_data['_checked']; ?>>表示数設定
|
||||
value="<?php echo esc_html($per_page_data['_checked']); ?>">表示数設定
|
||||
<input class="per_page_search_input" type="text"
|
||||
name="_apop_per_page[search]"
|
||||
value="<?php echo $per_page_data['_per_page_num']; ?>" required>
|
||||
value="<?php echo esc_html($per_page_data['_per_page_num']); ?>" required>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
<div class="select_cat">
|
||||
<label>
|
||||
<input type="hidden"
|
||||
name="<?php echo $order_name; ?>[target_cat][<?php echo $tax_datum->term_id; ?>]"
|
||||
name="<?php echo esc_html($order_name); ?>[target_cat][<?php echo esc_html($tax_datum->term_id); ?>]"
|
||||
value="0">
|
||||
<input class="select_cat_checkbox" type="checkbox"
|
||||
name="<?php echo $order_name; ?>[target_cat][<?php echo $tax_datum->term_id; ?>]"
|
||||
name="<?php echo esc_html($order_name); ?>[target_cat][<?php echo esc_html($tax_datum->term_id); ?>]"
|
||||
<?php checked( $check_slug, 1 ); ?>
|
||||
value="1">
|
||||
<?php echo $tax_datum->name; ?>
|
||||
<?php echo esc_html($tax_datum->name); ?>
|
||||
</label>
|
||||
</div>
|
||||
<?php $per_page_data = APOP_UI::create_tax_per_page( $opt_per_page, $order_tax, $tax_datum->term_id ); ?>
|
||||
@@ -32,27 +32,27 @@
|
||||
<li>
|
||||
<label>
|
||||
<input class="per_page_cat" type="radio"
|
||||
name="_apop_per_page[<?php echo $order_tax; ?>][<?php echo $tax_datum->term_id; ?>]"
|
||||
value="default"<?php checked( $per_page_data['_per_page'], 'default' ); ?>>表示設定に従う(<?php echo $default_per_page; ?>
|
||||
name="_apop_per_page[<?php echo esc_html($order_tax); ?>][<?php echo esc_html($tax_datum->term_id); ?>]"
|
||||
value="default"<?php checked( $per_page_data['_per_page'], 'default' ); ?>>表示設定に従う(<?php echo esc_html($default_per_page); ?>
|
||||
件)</label>
|
||||
</li>
|
||||
<li><label>
|
||||
<input class="per_page_cat" type="radio"
|
||||
name="_apop_per_page[<?php echo $order_tax; ?>][<?php echo $tax_datum->term_id; ?>]"
|
||||
name="_apop_per_page[<?php echo esc_html($order_tax); ?>][<?php echo esc_html($tax_datum->term_id); ?>]"
|
||||
value="all"<?php checked( $per_page_data['_per_page'], 'all' ); ?>>全体設定に従う</label>
|
||||
</li>
|
||||
<li><label>
|
||||
<input class="per_page_cat" type="radio"
|
||||
name="_apop_per_page[<?php echo $order_tax; ?>][<?php echo $tax_datum->term_id; ?>]"
|
||||
name="_apop_per_page[<?php echo esc_html($order_tax); ?>][<?php echo esc_html($tax_datum->term_id); ?>]"
|
||||
value="-1"<?php checked( $per_page_data['_per_page'], '-1' ); ?>>全件</label>
|
||||
</li>
|
||||
<li class="set_number_list">
|
||||
<label><input class="per_page_cat set_number" type="radio"
|
||||
name="_apop_per_page[<?php echo $order_tax; ?>][<?php echo $tax_datum->term_id; ?>]"
|
||||
value=""<?php echo $per_page_data['_checked']; ?>>表示数設定
|
||||
name="_apop_per_page[<?php echo esc_html($order_tax); ?>][<?php echo esc_html($tax_datum->term_id); ?>]"
|
||||
value=""<?php echo esc_html($per_page_data['_checked']); ?>>表示数設定
|
||||
<input class="per_page_cat_input" type="text"
|
||||
name="_apop_per_page[<?php echo $order_tax; ?>][<?php echo $tax_datum->term_id; ?>]"
|
||||
value="<?php echo $per_page_data['_per_page_num']; ?>" required>
|
||||
name="_apop_per_page[<?php echo esc_html($order_tax); ?>][<?php echo esc_html($tax_datum->term_id); ?>]"
|
||||
value="<?php echo esc_html($per_page_data['_per_page_num']); ?>" required>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
<?php if ( isset( $this->order_field ) && count( $this->order_field ) > 0 ): ?>
|
||||
<dl class="apop_setting_list_dd">
|
||||
<?php foreach ( $this->order_field as $type => $items ): ?>
|
||||
<dt><?php echo $this->labels[ $type ]; ?></dt>
|
||||
<dt><?php echo esc_html($this->labels[ $type ]); ?></dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<?php foreach ( $items as $item ): ?>
|
||||
<?php if ( ! empty( $item ) ): ?>
|
||||
<li><label><?php echo $item; ?></label>
|
||||
<li><label><?php echo esc_html($item); ?></label>
|
||||
<input type="text" name="<?php echo APOP_CUSTOM_FIELD_PREFIX . $item; ?>"
|
||||
value="<?php echo $this->get_custom_field_data( $item ); ?>"/>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user