@@ -87,7 +87,7 @@ function custom_columns_display_cpt( $column, $post_id ) {
8787 if ( 'form ' === $ column ) {
8888 if ( $ form_id = get_post_meta ( $ post_id , '_form_id ' , true ) ) {
8989 $ form = get_post ( $ form_id );
90- echo '<a href=" ' . esc_url_raw ( get_edit_post_link ( $ form_id , '' ) ). '" target="_blank"> ' ;
90+ echo '<a href=" ' . esc_url_raw ( get_edit_post_link ( $ form_id , '' ) ) . '" target="_blank"> ' ;
9191 echo esc_html ( $ form ->post_title );
9292 echo '</a> ' ;
9393 }
@@ -197,14 +197,16 @@ function wplf_submission_bulk_action_admin_notice() {
197197 $ count = intval ( $ _REQUEST ['wplf_resent ' ] );
198198 printf (
199199 '<div id="wplf-submission-bulk-resend-message" class="notice notice-success"><p> ' .
200- esc_html__ (
201- _n ( 'Resent email copy of %s submission. ' ,
202- 'Resent email copy of %s submissions. ' ,
203- $ count ),
204- 'wp-libre-form '
205- ) . '</p></div> ' ,
206- intval ( $ count )
207- );
200+ esc_html (
201+ // translators: %s is number of submissions
202+ _n ( 'Resent email copy of %s submission. ' ,
203+ 'Resent email copy of %s submissions. ' ,
204+ $ count ,
205+ 'wp-libre-form '
206+ )
207+ ) .
208+ '</p></div> ' ,
209+ intval ( $ count ) );
208210 }
209211 }
210212
@@ -242,7 +244,7 @@ function metabox_submission() {
242244 </thead>
243245 <tbody>
244246 <?php foreach ( $ fields as $ field ) : ?>
245- <?php if ( '_ ' !== $ field [0 ] ) : ?>
247+ <?php if ( '_ ' !== $ field [0 ] ) : ?>
246248 <?php
247249 $ value = $ postmeta [ $ field ][0 ];
248250
@@ -272,7 +274,7 @@ function metabox_submission() {
272274 <?php if ( strlen ( $ value ) > 60 || strpos ( $ value , "\n" ) ) : ?>
273275 <td><textarea style="width:100%" readonly><?php echo esc_textarea ( $ value ); ?> </textarea></td>
274276 <?php else : ?>
275- <td><input style="width:100%" type="text" value="<?php esc_attr_e ( $ value ); ?> " readonly></td>
277+ <td><input style="width:100%" type="text" value="<?php echo esc_attr ( $ value ); ?> " readonly></td>
276278 <?php endif ; ?>
277279 </tr>
278280 <?php endif ; ?>
0 commit comments