inline wp_kses

This commit is contained in:
paul sealock 2023-12-08 15:57:28 +13:00
parent 28df5447d0
commit bcb5a393e6
1 changed files with 3 additions and 4 deletions

View File

@ -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>'
?>