Skip to content

Commit

Permalink
fix printing attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ziodave committed Nov 29, 2023
1 parent 1a6d9ce commit 618f80a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/admin/elements/class-wordlift-admin-input-element.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public function render( $args ) {
$input_type = ! empty( $params['type'] ) ? $params['type'] : 'text';
?>

<input type="<?php echo esc_attr( $input_type ); ?>"
id="<?php echo esc_attr( $params['id'] ); ?>"
name="<?php echo esc_attr( $params['name'] ); ?>"
value="<?php echo esc_attr( $params['value'] ); ?>"
<input type="<?php echo esc_attr( $input_type ); ?>"
id="<?php echo esc_attr( $params['id'] ); ?>"
name="<?php echo esc_attr( $params['name'] ); ?>"
value="<?php echo esc_attr( $params['value'] ); ?>"
<?php
if ( $params['pattern'] ) {
echo ' pattern="';
Expand Down Expand Up @@ -98,12 +98,13 @@ public function render( $args ) {
echo ' class="';
echo esc_attr( $params['css_class'] );
echo '"';
} ?>
/>
}
?>
/>
<?php
if ( ! empty( $params['description'] ) ) {
?>
<p><?php echo wp_kses( $params['description'], array( 'a' => array( 'href' => array() ) ) ); ?></p><?php } ?>
<p><?php echo wp_kses( $params['description'], array( 'a' => array( 'href' => array() ) ) ); ?></p><?php } ?>

<?php

Expand Down

0 comments on commit 618f80a

Please sign in to comment.