Ticket #6654: 6654.5.diff
| File 6654.5.diff, 1.6 KB (added by , 3 years ago) |
|---|
-
content-category.php
1 1 <div class="jobs-group"> 2 2 3 3 <?php 4 /** 5 * @global $category 6 */ 4 7 global $category; 5 8 6 9 $q = get_queried_object(); -
content-home.php
1 1 <?php 2 /** 3 * @global $category 4 */ 2 5 global $category; 3 6 4 7 $job_categories = Jobs_Dot_WP::get_job_categories(); -
content-list.php
1 1 <?php 2 2 $evenodd = 0; 3 3 if ( $posts ) { 4 /** 5 * @global WP_Post $post Global post object. 6 */ 4 7 global $post; 5 8 6 9 foreach ( $posts as $post ) { … … 38 41 39 42 <?php 40 43 if ( is_front_page() ) { 44 /** 45 * @global $category 46 */ 41 47 global $category; 42 48 echo '<p class="all-job-categories">'; 43 49 if ( ! $category ) -
functions.php
130 130 131 131 /** 132 132 * Sets 404 response for author archive requests. 133 * @global WP_Query $wp_query Query object. 133 134 */ 134 135 function jobswp_author_archives_404() { 135 136 if ( is_author() ) { … … 146 147 * Currently output for: 147 148 * - empty job category archives 148 149 * - search results 150 * @global WP_Query $wp_query Query object. 149 151 */ 150 152 function jobswp_noindex() { 151 153 global $wp_query;