Plugin Directory

Changeset 1026243


Ignore:
Timestamp:
11/15/2014 04:24:20 PM (11 years ago)
Author:
arnee
Message:
  • Fixed bug regarding category exclusion
File:
1 edited

Legend:

Unmodified
Added
Removed
  • google-sitemap-generator/trunk/sitemap-builder.php

    r925789 r1026243  
    9191            $exCatSQL = "";
    9292            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) . "))))";
    9494            }
    9595
     
    196196                    $permalink = get_permalink($post);
    197197
     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
    198207                    //Exclude the home page and placeholder items by some plugins. Also include only internal links.
    199208                    if(
Note: See TracChangeset for help on using the changeset viewer.