Changeset 2617885
- Timestamp:
- 10/21/2021 03:41:50 PM (4 years ago)
- Location:
- visual-form-builder/trunk/admin
- Files:
-
- 3 edited
-
class-ajax.php (modified) (1 diff)
-
class-entries-detail.php (modified) (2 diffs)
-
class-media-button.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
visual-form-builder/trunk/admin/class-ajax.php
r1812215 r2617885 67 67 $form_id = absint( $data['form_id'] ); 68 68 $field_key = sanitize_title( $_POST['field_type'] ); 69 $field_name = esc_html( $_POST['field_type'] );69 $field_name = sanitize_text_field( $_POST['field_type'] ); 70 70 $field_type = strtolower( sanitize_title( $_POST['field_type'] ) ); 71 71 -
visual-form-builder/trunk/admin/class-entries-detail.php
r2617877 r2617885 29 29 ?> 30 30 <form id="entry-edit" method="post" action=""> 31 <h3><span><?php echo stripslashes( $entry->form_title ); ?> : <?php echo __( 'Entry' , 'visual-form-builder'); ?> # <?php echo $entry->entries_id; ?></span></h3>31 <h3><span><?php echo stripslashes( $entry->form_title ); ?> : <?php _e( 'Entry' , 'visual-form-builder'); ?> # <?php echo $entry->entries_id; ?></span></h3> 32 32 <div id="vfb-poststuff" class="metabox-holder has-right-sidebar"> 33 33 <div id="side-info-column" class="inner-sidebar"> … … 40 40 <div id="misc-publishing-actions"> 41 41 <div class="misc-pub-section"> 42 <span><strong><?php echo __( 'Form Title' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->form_title ); ?></span>42 <span><strong><?php _e( 'Form Title' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( $entry->form_title ); ?></span> 43 43 </div> 44 44 <div class="misc-pub-section"> 45 <span><strong><?php echo __( 'Date Submitted' , 'visual-form-builder'); ?>: </strong><?php echo date( "$date_format $time_format", strtotime( $entry->date_submitted) ); ?></span>45 <span><strong><?php _e( 'Date Submitted' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( date( "$date_format $time_format", strtotime( $entry->date_submitted ) ) ); ?></span> 46 46 </div> 47 47 <div class="misc-pub-section"> 48 <span><strong><?php echo __( 'IP Address' , 'visual-form-builder'); ?>: </strong><?php echo $entry->ip_address; ?></span>48 <span><strong><?php _e( 'IP Address' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( $entry->ip_address ); ?></span> 49 49 </div> 50 50 <div class="misc-pub-section"> 51 <span><strong><?php echo __( 'Email Subject' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->subject ); ?></span>51 <span><strong><?php _e( 'Email Subject' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( $entry->subject ); ?></span> 52 52 </div> 53 53 <div class="misc-pub-section"> 54 <span><strong><?php echo __( 'Sender Name' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->sender_name ); ?></span>54 <span><strong><?php _e( 'Sender Name' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( $entry->sender_name ); ?></span> 55 55 </div> 56 56 <div class="misc-pub-section"> 57 <span><strong><?php echo __( 'Sender Email' , 'visual-form-builder'); ?>: </strong><a href="mailto:<?php echo stripslashes( $entry->sender_email ); ?>"><?php echo stripslashes( $entry->sender_email ); ?></a></span>57 <span><strong><?php _e( 'Sender Email' , 'visual-form-builder'); ?>: </strong><a href="mailto:<?php echo esc_html( $entry->sender_email ); ?>"><?php echo esc_html( $entry->sender_email ); ?></a></span> 58 58 </div> 59 59 <div class="misc-pub-section"> 60 <span><strong><?php echo __( 'Emailed To' , 'visual-form-builder'); ?>: </strong><?php echo preg_replace('/\b([A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4})\b/i', '<a href="mailto:$1">$1</a>', implode( ',', unserialize( stripslashes( $entry->emails_to) ) ) ); ?></span>60 <span><strong><?php _e( 'Emailed To' , 'visual-form-builder'); ?>: </strong><?php echo preg_replace('/\b([A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4})\b/i', '<a href="mailto:$1">$1</a>', esc_html( implode( ',', unserialize( stripslashes( $entry->emails_to ) ) ) ) ); ?></span> 61 61 </div> 62 62 <div class="clear"></div> -
visual-form-builder/trunk/admin/class-media-button.php
r1812215 r2617885 37 37 ); 38 38 ?> 39 <a href="<?php echo esc_url( $button_url ); ?>" class="button add_media thickbox" title="<?php _e( 'Add Visual Form Builder form', 'visual-form-builder' ); ?>">39 <a href="<?php echo esc_url( $button_url ); ?>" class="button add_media thickbox" title="<?php esc_attr_e( 'Add Visual Form Builder form', 'visual-form-builder' ); ?>"> 40 40 <span class="dashicons dashicons-feedback" style="color:#888; display: inline-block; width: 18px; height: 18px; vertical-align: text-top; margin: 0 4px 0 0;"></span> 41 41 <?php _e( 'Add Form', 'visual-form-builder' ); ?> … … 79 79 <select id="vfb_forms" name="vfb_forms"> 80 80 <?php foreach( $forms as $form ) : ?> 81 <option value="<?php echo $form->form_id; ?>"><?php echo $form->form_title; ?></option>81 <option value="<?php echo esc_attr( $form->form_id ); ?>"><?php echo $form->form_title; ?></option> 82 82 <?php endforeach; ?> 83 83 </select>
Note: See TracChangeset
for help on using the changeset viewer.