| @@ -69,9 +69,9 @@ | ||
| 69 | 69 | wp_add_inline_style( Fns::optimized_handle( 'rtsb-frontend' ), $this->cache[ $cache_key ] ); |
| 70 | 70 | return; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - $height = ! empty( $this->options['modal_height'] ) ? absint( $this->options['modal_height'] ) : false; | |
| 73 | + $height = $this->options['modal_height'] ?? false; | |
| 74 | 74 | $wrapper_padding = $this->options['modal_wrapper_padding'] ?? '0'; |
| 75 | 75 | $bg_color = $this->options['modal_bg_color'] ?? false; |
| 76 | 76 | $box_shadow = $this->options['modal_box_shadow_color'] ?? false; |
| 77 | 77 | $overly_color = $this->options['modal_overly_color'] ?? false; |
| @@ -79,9 +79,9 @@ | ||
| 79 | 79 | ob_start(); |
| 80 | 80 | |
| 81 | 81 | if ( $height ) { ?> |
| 82 | 82 | .rtsb-ui-modal .rtsb-modal-content{ |
| 83 | - height: <?php echo absint( $height ); ?>px; | |
| 83 | + height: <?php echo esc_attr( $height ); ?>; | |
| 84 | 84 | } |
| 85 | 85 | <?php |
| 86 | 86 | } |
| 87 | 87 | |