PluginProbe
QuickWebP – WebP & AVIF Image Optimizer, Compression & SEO for WordPress / 3.2.5
QuickWebP – WebP & AVIF Image Optimizer, Compression & SEO for WordPress v3.2.5
4.1.1 4.1.0 4.0.1 4.0.0 3.3.1 3.3.0 trunk 1.0.0 2.0.0 2.1.0 3.0.0 3.1.0 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8
quickwebp / admin / components / text.php

text.php in QuickWebP – WebP & AVIF Image Optimizer, Compression & SEO for WordPress 3.2.5, at admin/components/text.php

19 lines 647 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Text component for the settings page
4 */
5
6 $key_option = sanitize_key( $data['name'] );
7
8 if( isset( $key_option, $_POST[ $key_option ] ) ) {
9 update_option( $key_option, stripslashes( sanitize_text_field( $_POST[ $key_option ] ) ) );
10 }
11 ?>
12 <input
13 type="<?php echo esc_attr( $data['type'] ); ?>"
14 name="<?php echo esc_attr( $key_option ?? '' ); ?>"
15 class="regular-text"
16 id="<?php echo esc_attr( $key_option ?? '' ); ?>"
17 value="<?php echo esc_html( get_option( $key_option ?? '', $data['default'] ?? '' ) ); ?>"
18 <?php echo isset( $data['pattern'] ) ? 'pattern="' . esc_attr( $data['pattern'] ) . '"' : ''; ?>
19 >