Making WordPress.org

Ticket #6654: 6654.5.diff

File 6654.5.diff, 1.6 KB (added by viralsampat, 3 years ago)

I have checked from my end and found a few other files. So, I have added my patch.

  • content-category.php

     
    11<div class="jobs-group">
    22
    33<?php
     4        /**
     5         * @global $category
     6         */
    47        global $category;
    58
    69        $q = get_queried_object();
  • content-home.php

     
    11<?php
     2/**
     3 * @global $category
     4 */
    25global $category;
    36
    47$job_categories = Jobs_Dot_WP::get_job_categories();
  • content-list.php

     
    11<?php
    22        $evenodd = 0;
    33        if ( $posts ) {
     4                /**
     5                 * @global WP_Post $post Global post object.
     6                 */
    47                global $post;
    58
    69                foreach ( $posts as $post ) {
     
    3841
    3942        <?php   
    4043                if ( is_front_page() ) {
     44                        /**
     45                         * @global $category
     46                         */
    4147                        global $category;
    4248                        echo '<p class="all-job-categories">';
    4349                        if ( ! $category )
  • functions.php

     
    130130
    131131/**
    132132 * Sets 404 response for author archive requests.
     133 * @global WP_Query $wp_query Query object.
    133134 */
    134135function jobswp_author_archives_404() {
    135136        if ( is_author() ) {
     
    146147 * Currently output for:
    147148 * - empty job category archives
    148149 * - search results
     150 * @global WP_Query $wp_query Query object.
    149151 */
    150152function jobswp_noindex() {
    151153        global $wp_query;