Changeset 1026243
- Timestamp:
- 11/15/2014 04:24:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
google-sitemap-generator/trunk/sitemap-builder.php
r925789 r1026243 91 91 $exCatSQL = ""; 92 92 if(count($excludedCategoryIDs) > 0) { 93 $exCatSQL = "AND ( p.ID NOT IN ( SELECT object_id FROM {$wpdb->term_relationships} WHERE term_taxonomy_id IN ( " . implode(",", $excludedCategoryIDs) . ")))";93 $exCatSQL = "AND ( p.ID NOT IN ( SELECT object_id FROM {$wpdb->term_relationships} WHERE term_taxonomy_id IN ( SELECT term_taxonomy_id FROM {$wpdb->term_taxonomy} WHERE term_id IN ( " . implode(",", $excludedCategoryIDs) . "))))"; 94 94 } 95 95 … … 196 196 $permalink = get_permalink($post); 197 197 198 /** 199 * Filters the permalink of the current post 200 * @since 2.7.0 201 * @param string $permalink The permalink 202 * @param WP_Post $post The post 203 */ 204 $permalink = apply_filters('sm_post_permalink', $permalink, $post); 205 206 198 207 //Exclude the home page and placeholder items by some plugins. Also include only internal links. 199 208 if(
Note: See TracChangeset
for help on using the changeset viewer.