@@ -118,9 +118,9 @@ public function column_default( $item, $column_name ) {
118118 * @param array $email The array of info about the email.
119119 */
120120 public function column_cb ( $ email ) {
121- $ id = esc_attr ( $ email ['id ' ] );
121+ $ id = esc_attr ( $ email ['id ' ] );
122122 ?>
123- <input id="cb-select-<?php echo $ id ; ?> " type="checkbox" name="email[]" value="<?php echo $ id ; ?> " />
123+ <input id="cb-select-<?php echo $ id ; ?> " type="checkbox" name="email[]" value="<?php echo $ id ; ?> "/>
124124 <?php
125125 }
126126
@@ -313,9 +313,7 @@ public function get_data( $current_page, $per_page ) {
313313 ORDER BY $ orderby $ order
314314 LIMIT $ offset, $ count " ;
315315
316- $ results = $ this ->database ->get_results ( $ query , ARRAY_A );
317-
318- return $ results ;
316+ return stripslashes_deep ( $ this ->database ->get_results ( $ query , ARRAY_A ) );
319317 }
320318
321319 /**
@@ -409,9 +407,10 @@ public function render_views() {
409407 * The dynamic portion of the hook name, `$this->screen->id`, refers
410408 * to the ID of the current screen, usually a string.
411409 *
410+ * @param string[] $views An array of available list table views.
411+ *
412412 * @since 3.5.0
413413 *
414- * @param string[] $views An array of available list table views.
415414 */
416415 $ views = apply_filters ( "views_ {$ this ->screen ->id }" , $ views );
417416 if ( empty ( $ views ) ) {
@@ -427,7 +426,7 @@ public function render_views() {
427426 $ current = 'all ' ;
428427 }
429428
430- $ current = ( $ current === $ class ) ? 'current ' : '' ;
429+ $ current = ( $ current === $ class ) ? 'current ' : '' ;
431430 $ views [ $ class ] = "\t<li class=' $ class'><a href='#activity' class=' $ current' data-status=' $ class'> $ view</a> " ;
432431 }
433432 echo implode ( " |</li> \n" , $ views ) . "</li> \n" ;
@@ -508,17 +507,17 @@ public function process_bulk_actions() {
508507 public function display () {
509508 ?>
510509 <form id="wposes-activity-form" method="post">
511- <?php
512- wp_nonce_field ( 'wposes-activity-nonce ' , 'wposes_activity_nonce ' );
510+ <?php
511+ wp_nonce_field ( 'wposes-activity-nonce ' , 'wposes_activity_nonce ' );
513512
514- $ order = ! empty ( $ this ->_pagination_args ['order ' ] ) ? $ this ->_pagination_args ['order ' ] : 'desc ' ;
515- $ orderby = ! empty ( $ this ->_pagination_args ['orderby ' ] ) ? $ this ->_pagination_args ['orderby ' ] : 'date ' ;
513+ $ order = ! empty ( $ this ->_pagination_args ['order ' ] ) ? $ this ->_pagination_args ['order ' ] : 'desc ' ;
514+ $ orderby = ! empty ( $ this ->_pagination_args ['orderby ' ] ) ? $ this ->_pagination_args ['orderby ' ] : 'date ' ;
516515
517- echo '<input type="hidden" id="order" name="order" value=" ' . esc_attr ( $ order ) . '" /> ' ;
518- echo '<input type="hidden" id="orderby" name="orderby" value=" ' . esc_attr ( $ orderby ) . '" /> ' ;
516+ echo '<input type="hidden" id="order" name="order" value=" ' . esc_attr ( $ order ) . '" /> ' ;
517+ echo '<input type="hidden" id="orderby" name="orderby" value=" ' . esc_attr ( $ orderby ) . '" /> ' ;
519518
520- parent ::display ();
521- ?>
519+ parent ::display ();
520+ ?>
522521 </form>
523522 <?php
524523 }
@@ -548,9 +547,9 @@ public function extra_tablenav( $which = 'top' ) {
548547 ?>
549548 <div id="wposes-activity-actions" class="alignleft actions">
550549 <?php $ this ->email_months_dropdown (); ?>
551- <input id="wposes-subject-search" type="text" name="subject" placeholder="<?php _e ( 'All Subjects ' , 'wp-offload-ses ' ); ?> " />
552- <input id="wposes-recipient-search" type="text" name="recipient" placeholder="<?php _e ( 'All Recipients ' , 'wp-offload-ses ' ); ?> " />
553- <input type="submit" id="wposes-filter-btn" name="filter_action" class="button action" value="<?php _e ( 'Filter ' , 'wp-offload-ses ' ); ?> " />
550+ <input id="wposes-subject-search" type="text" name="subject" placeholder="<?php _e ( 'All Subjects ' , 'wp-offload-ses ' ); ?> "/>
551+ <input id="wposes-recipient-search" type="text" name="recipient" placeholder="<?php _e ( 'All Recipients ' , 'wp-offload-ses ' ); ?> "/>
552+ <input type="submit" id="wposes-filter-btn" name="filter_action" class="button action" value="<?php _e ( 'Filter ' , 'wp-offload-ses ' ); ?> "/>
554553 </div>
555554 <?php
556555 }
@@ -566,7 +565,7 @@ public function email_months_dropdown() {
566565 FROM {$ this ->emails_table }
567566 ORDER BY email_created DESC "
568567 );
569- $ m = isset ( $ _GET ['m ' ] ) ? (int ) $ _GET ['m ' ] : 0 ;
568+ $ m = isset ( $ _GET ['m ' ] ) ? (int ) $ _GET ['m ' ] : 0 ;
570569 ?>
571570 <select name="m" id="wposes-filter-by-date">
572571 <option <?php selected ( $ m , 0 ); ?> value="0"><?php _e ( 'All dates ' , 'wp-offload-ses ' ); ?> </option>
@@ -587,8 +586,8 @@ public function email_months_dropdown() {
587586 );
588587 }
589588 ?>
590- </select>
591- <?php
589+ </select>
590+ <?php
592591 }
593592
594593 /**
0 commit comments