From d460e9502558014a41045fd848451c2bac02acec Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 10 Mar 2016 15:15:36 -0500 Subject: [PATCH] Added Nonces * ADDED: Nonces were added to the urls to make them safer. --- classes/class.all-audits-table.php | 2 +- classes/class.all-posts-table.php | 2 +- functions/common.php | 21 +++++++++++++++++++++ functions/dashboard-panel.php | 2 +- functions/notifications.php | 2 +- functions/post-meta-box.php | 2 +- my-site-audit.php | 5 ++--- readme.txt | 8 ++++++-- views/all-audits.php | 6 +++--- 9 files changed, 37 insertions(+), 13 deletions(-) diff --git a/classes/class.all-audits-table.php b/classes/class.all-audits-table.php index b3646e0..9f8fc93 100644 --- a/classes/class.all-audits-table.php +++ b/classes/class.all-audits-table.php @@ -314,7 +314,7 @@ public function column_name( $item ) { $actions['edit'] = $condition_modal; - return apply_filters( 'msa_all_audits_table_column_name', sprintf( '%1$s %2$s', '' . $item['name'] . 'id:(' . $item['id'] . ')', $this->row_actions( $actions ) ) ); + return apply_filters( 'msa_all_audits_table_column_name', sprintf( '%1$s %2$s', '' . $item['name'] . 'id:(' . $item['id'] . ')', $this->row_actions( $actions ) ) ); } diff --git a/classes/class.all-posts-table.php b/classes/class.all-posts-table.php index f9b87be..afe46d2 100755 --- a/classes/class.all-posts-table.php +++ b/classes/class.all-posts-table.php @@ -258,7 +258,7 @@ public function column_default( $item, $column_name ) { switch ( $column_name ) { case 'score': - $data = '' . round( 100 * $score['score'] ) . '%
' . $item['post']->post_title . ''; + $data = '' . round( 100 * $score['score'] ) . '%
' . $item['post']->post_title . ''; break; case 'modified_date': diff --git a/functions/common.php b/functions/common.php index 6078aea..adbcf93 100644 --- a/functions/common.php +++ b/functions/common.php @@ -22,6 +22,27 @@ function msa_force_redirect( $url ) { ' . __( 'Name', 'msa' ) . ' ' . $audit['name'] . ''; + $output .= '' . __( 'Name', 'msa' ) . ' ' . $audit['name'] . ''; $output .= '' . __( 'Created On', 'msa' ) . ' ' . date( 'M d Y, h:i:s', strtotime( $audit['date'] ) ) . ''; $output .= '' . __( 'Number of Posts', 'msa' ) . ' ' . $audit['num_posts'] . ''; $output .= '' . __( 'Created By', 'msa' ) . ' ' . $user->display_name . ''; diff --git a/functions/notifications.php b/functions/notifications.php index 0ef9fd0..100ad6e 100644 --- a/functions/notifications.php +++ b/functions/notifications.php @@ -39,7 +39,7 @@ function msa_notifiy_audit_is_completed( $audit_id, $audit_name ) { } $subject = $audit_name . __( ' Completed for site: ', 'msa' ) . $site_name; - $message = __( 'Your Audit has been completed for site: ', 'msa' ) . get_site_url() . "\r\n\r\n" . __( 'View: ', 'msa' ) . get_admin_url() . 'admin.php?page=msa-all-audits&audit=' . $audit_id; + $message = __( 'Your Audit has been completed for site: ', 'msa' ) . get_site_url() . "\r\n\r\n" . __( 'View: ', 'msa' ) . msa_get_single_audit_link( $audit_id ); $headers = ''; // $headers .= "MIME-Version: 1.0\r\n"; // $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; diff --git a/functions/post-meta-box.php b/functions/post-meta-box.php index 7ff74cd..20a9a3c 100755 --- a/functions/post-meta-box.php +++ b/functions/post-meta-box.php @@ -72,7 +72,7 @@ function msa_meta_box_callback( $post ) {
- +

- +

@@ -138,7 +138,7 @@
-