inline wp_kses
This commit is contained in:
parent
28df5447d0
commit
bcb5a393e6
|
@ -201,7 +201,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
if ( ! $method->supports( 'shipping-zones' ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
echo '<div class="wc-shipping-zone-method-input"><input type="radio" value="' . esc_attr( $method->id ) . '" id="' . esc_attr( $method->id ) . '" name="add_method_id"/><label for="' . esc_attr( $method->id ) . '">' . esc_html( $method->get_method_title() ) . '<span class="dashicons dashicons-yes"></span></label></div>';
|
||||
}
|
||||
|
||||
|
@ -216,11 +216,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
'href' => true,
|
||||
'title' => true,
|
||||
'target' => true,
|
||||
)
|
||||
),
|
||||
);
|
||||
$description = wp_kses( $method->get_method_description(), $allowed_html );
|
||||
|
||||
echo '<div id=' . esc_attr( $method->id ) . '-description class="wc-shipping-zone-method-input-help-text"><span>' . $description . '</span></div>';
|
||||
echo '<div id=' . esc_attr( $method->id ) . '-description class="wc-shipping-zone-method-input-help-text"><span>' . wp_kses( $method->get_method_description(), $allowed_html ) . '</span></div>';
|
||||
}
|
||||
echo '</div>'
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue