diff --git a/composer.json b/composer.json index f93c0bd27..1e2fc3ec2 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", "object-calisthenics/phpcs-calisthenics-rules": "*", "phpcompatibility/phpcompatibility-wp": "*", - "wp-coding-standards/wpcs": "2.3.0", + "wp-coding-standards/wpcs": "3.1.0", "squizlabs/php_codesniffer": "3.*", "phpdocumentor/phpdocumentor": "3.1.*" } diff --git a/includes/admin/class-list-table.php b/includes/admin/class-list-table.php index 063f5fea5..0d436256f 100644 --- a/includes/admin/class-list-table.php +++ b/includes/admin/class-list-table.php @@ -54,7 +54,6 @@ public function column_title( $post ) { $title = _draft_or_post_title(); if ( $can_edit_post && 'trash' !== $post->post_status ) { - /** @noinspection HtmlUnknownTarget */ printf( '(#%1$s) %4$s', esc_html( $post->ID ), @@ -79,7 +78,6 @@ public function column_title( $post ) { $company_website = get_post_meta( $post->ID, 'jb-company-website', true ); if ( ! empty( $company_website ) ) { - /** @noinspection HtmlUnknownTarget */ printf( '
%3$s
' . "\n", esc_attr( $company_tagline ), diff --git a/includes/admin/class-settings.php b/includes/admin/class-settings.php index d1ed83583..2af5d2048 100644 --- a/includes/admin/class-settings.php +++ b/includes/admin/class-settings.php @@ -55,7 +55,7 @@ public function __construct() { //custom content for override templates tab add_action( 'plugins_loaded', array( $this, 'jb_check_template_version' ), 10 ); add_filter( 'jb_settings_custom_tabs', array( $this, 'add_custom_content_tab' ), 10 ); - add_filter( 'jb_settings_section_override_templates__content', array( $this, 'override_templates_list_table' ), 10, 1 ); + add_filter( 'jb_settings_section_override_templates__content', array( $this, 'override_templates_list_table' ) ); } public function add_custom_content_tab( $custom_array ) { @@ -1049,7 +1049,6 @@ public function tabs_menu() { $active = ( $current_tab === $slug ) ? 'nav-tab-active' : ''; - /** @noinspection HtmlUnknownTarget */ $tabs .= sprintf( '%s', esc_attr( $tab_link ), @@ -1115,7 +1114,6 @@ public function subtabs_menu( $tab = '' ) { $active = ( $current_subtab === $slug ) ? 'current' : ''; - /** @noinspection HtmlUnknownTarget */ $subtabs .= sprintf( '%s | ', esc_attr( $tab_link ), @@ -1375,7 +1373,7 @@ function( $item ) use ( $template_path, $blog_id ) { return $settings; } - public function override_templates_list_table( $section_content ) { + public function override_templates_list_table() { $jb_check_version = get_transient( 'jb_check_template_versions' ); ob_start(); ?> @@ -1395,16 +1393,13 @@ public function override_templates_list_table( $section_content ) {

here.', 'jobboardwp' ), 'https://docs.jobboardwp.com/article/1570-templates-structure' ), JB()->get_allowed_html( 'admin_notice' ) ); ?>

Job Duration setting.', 'jobboardwp' ), $settings_link ); } diff --git a/includes/common/class-job.php b/includes/common/class-job.php index dbd171b64..d9e508683 100644 --- a/includes/common/class-job.php +++ b/includes/common/class-job.php @@ -355,7 +355,6 @@ public function get_company( $job_id ) { } if ( ! empty( $company_website ) ) { - /** @noinspection HtmlUnknownTarget */ $company = sprintf( '%s', $company_tagline, $company_website, $company_name ); } else { $company = sprintf( '%s', $company_tagline, $company_name ); diff --git a/includes/frontend/class-shortcodes.php b/includes/frontend/class-shortcodes.php index 8513598e7..cd2a1d35d 100644 --- a/includes/frontend/class-shortcodes.php +++ b/includes/frontend/class-shortcodes.php @@ -86,7 +86,6 @@ public function job_post( $atts = array() ) { if ( ! empty( $_GET['msg'] ) ) { switch ( sanitize_key( $_GET['msg'] ) ) { case 'draft': - /** @noinspection HtmlUnknownTarget */ $posting_form->add_notice( // translators: %s: jobs dashboard page link sprintf( __( 'Job\'s draft was saved. You could resumed it from the job dashboard', 'jobboardwp' ), $jobs_dashboard_link ), @@ -107,7 +106,6 @@ public function job_post( $atts = array() ) { case 'published': if ( ! empty( $_GET['published-id'] ) ) { $job_permalink = get_permalink( absint( $_GET['published-id'] ) ); - /** @noinspection HtmlUnknownTarget */ $posting_form->add_notice( // translators: %s: link to the published job sprintf( __( 'Job is posted successfully. To view your job click here', 'jobboardwp' ), $job_permalink ), @@ -156,7 +154,6 @@ public function job_post( $atts = array() ) {

Sign in to post a job.', 'jobboardwp' ), esc_attr( wp_login_url( get_permalink() ) ) ), JB()->get_allowed_html( 'templates' ) ); ?> @@ -369,7 +366,6 @@ public function render_section( $html, $section_data, $form_data ) {

Sign in to post a job.', 'jobboardwp' ), esc_attr( wp_login_url( get_permalink() ) ) ), JB()->get_allowed_html( 'templates' ) ); ?> @@ -381,7 +377,6 @@ public function render_section( $html, $section_data, $form_data ) {

Sign in to post a job or to do that as a guest.', 'jobboardwp' ), esc_attr( wp_login_url( get_permalink() ) ) ), JB()->get_allowed_html( 'templates' ) ); ?> diff --git a/templates/dashboard/jobs.php b/templates/dashboard/jobs.php index 90a4476a1..abc948f68 100644 --- a/templates/dashboard/jobs.php +++ b/templates/dashboard/jobs.php @@ -20,7 +20,6 @@

Sign in to view your job listings.', 'jobboardwp' ), wp_login_url( get_permalink() ) ), JB()->get_allowed_html( 'templates' ) ); ?> diff --git a/templates/job/footer.php b/templates/job/footer.php index 70bbe5d4b..0f2a92997 100644 --- a/templates/job/footer.php +++ b/templates/job/footer.php @@ -44,7 +44,6 @@

email your details to %2$s.', 'jobboardwp' ), esc_attr( $contact_mailto ), $contact ); /** @@ -65,7 +64,6 @@

%2$s.', 'jobboardwp' ), esc_attr( $contact ), $contact ); /** This filter is documented in templates/job/footer.php */ diff --git a/templates/js/job-categories-list.php b/templates/js/job-categories-list.php index bd83d2570..63df11fea 100644 --- a/templates/js/job-categories-list.php +++ b/templates/js/job-categories-list.php @@ -16,7 +16,7 @@

<# if ( category.description ) { #>
diff --git a/templates/js/jobs-dashboard.php b/templates/js/jobs-dashboard.php index a6146f899..a96ac0bd7 100644 --- a/templates/js/jobs-dashboard.php +++ b/templates/js/jobs-dashboard.php @@ -19,7 +19,7 @@
<# if ( job.is_published ) { #> - {{{job.title}}} + {{{job.title}}} <# } else { #> {{{job.title}}} <# } #> @@ -80,7 +80,7 @@