PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.5.2
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.5.2
3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 All 196 releases
← All changes | includes/widgets/class-ck-widget-form.php +10 -11 2.3.02.5.2 View file →
@@ -76,19 +76,18 @@
76 76 <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" value="<?php esc_attr( $instance['title'] ); ?>" />
77 77 </p>
78 78 <p>
79 79 <label for="<?php echo esc_attr( $this->get_field_id( 'form' ) ); ?>"><?php esc_html_e( 'Form', 'convertkit' ); ?></label>
80 - <select name="<?php echo esc_attr( $this->get_field_name( 'form' ) ); ?>" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'form' ) ); ?>" size="1">
81 - <?php
82 - foreach ( $forms->get() as $form ) {
83 - ?>
84 - <option value="<?php echo esc_attr( $form['id'] ); ?>"<?php selected( $form['id'], $instance['form'] ); ?>>
85 - <?php echo esc_attr( $form['name'] ); ?>
86 - </option>
87 - <?php
88 - }
89 - ?>
90 - </select>
80 + <?php
81 + echo $forms->get_select_field_all( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
82 + esc_attr( $this->get_field_name( 'form' ) ),
83 + esc_attr( $this->get_field_id( 'form' ) ),
84 + array(
85 + 'widefat',
86 + ),
87 + esc_attr( $instance['form'] )
88 + );
89 + ?>
91 90 </p>
92 91 <?php
93 92
94 93 return '';