From 013f0de3b94f42443ef2c8bf8ccdb5dfad787423 Mon Sep 17 00:00:00 2001 From: deepakrohillas Date: Mon, 1 Jul 2024 00:11:45 +0530 Subject: [PATCH] Missing Escaping, Strict Check, and PHPCS Issues in Multiple Files of jobs.wordpress.net --- .../wp-content/plugins/jobswp/jobswp-template.php | 4 ++-- .../public_html/wp-content/themes/jobswp/content-list.php | 2 +- .../public_html/wp-content/themes/jobswp/content-single.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-template.php b/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-template.php index a84839bc19..27cd6d8524 100644 --- a/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-template.php +++ b/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-template.php @@ -98,7 +98,7 @@ function jobswp_archive_header( $before = '', $after = '', $jobscnt = 0, $catego $jobscnt = sprintf( _n( '%d job', '%d jobs', $jobscnt, 'jobswp' ), $jobscnt ); } - $link .= " ($orig_jobscnt) $after"; + $link .= " ($orig_jobscnt) $after"; $output .= $link; $output .= '
'; @@ -192,7 +192,7 @@ function jobswp_field_value( $field, $option_value = '' ) { if ( $val ) { if ( in_array( $field, array( 'category', 'howtoapply_method', 'jobtype' ) ) ) return selected( $val, $option_value, false ); - elseif ( 'job_description' == $field ) + elseif ( 'job_description' === $field ) return $val; else return "value='$val'"; diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php index b200dadcf5..d685103965 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php @@ -43,7 +43,7 @@ if ( ! $category ) $category = array_pop( get_the_terms( get_the_ID(), 'job_category') ); - $link = ''; + $link = ''; $link .= 'name ) ) . '"'; $link .= '>'; diff --git a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-single.php b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-single.php index 20dcdad9e2..b610ec7ba7 100644 --- a/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-single.php +++ b/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-single.php @@ -65,9 +65,9 @@ $val = jobswp_get_job_meta( get_the_ID(), $fname ); if ( $val ) : ?> -
-
-
+
+
+