Make WordPress Core


Ignore:
Timestamp:
11/22/2015 03:50:32 AM (11 years ago)
Author:
SergeyBiryukov
Message:

After [35718], update the location of some files in This filter is documented in docs.

Partially reverts [33954].

Fixes #33413.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r35718 r35725  
    14751475                wp_cache_add( $cache_key, array(), 'terms', DAY_IN_SECONDS );
    14761476
    1477                 /** This filter is documented in wp-includes/taxonomy-functions.php */
     1477                /** This filter is documented in wp-includes/taxonomy.php */
    14781478                return apply_filters( 'get_terms', array(), $taxonomies, $args );
    14791479        }
    … …  
    15521552        }
    15531553
    1554         /** This filter is documented in wp-includes/taxonomy-functions.php */
     1554        /** This filter is documented in wp-includes/taxonomy.php */
    15551555        return apply_filters( 'get_terms', $terms, $taxonomies, $args );
    15561556}
    … …  
    26612661                $slug = sanitize_title($slug, $term_id);
    26622662
    2663                 /** This action is documented in wp-includes/taxonomy-functions.php */
     2663                /** This action is documented in wp-includes/taxonomy.php */
    26642664                do_action( 'edit_terms', $term_id, $taxonomy );
    26652665                $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) );
    26662666
    2667                 /** This action is documented in wp-includes/taxonomy-functions.php */
     2667                /** This action is documented in wp-includes/taxonomy.php */
    26682668                do_action( 'edited_terms', $term_id, $taxonomy );
    26692669        }
    … …  
    33053305        do_action( "edit_$taxonomy", $term_id, $tt_id );
    33063306
    3307         /** This filter is documented in wp-includes/taxonomy-functions.php */
     3307        /** This filter is documented in wp-includes/taxonomy.php */
    33083308        $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id );
    33093309
    … …  
    38633863                        $count += (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND post_status = 'publish' AND post_type IN ('" . implode("', '", $object_types ) . "') AND term_taxonomy_id = %d", $term ) );
    38643864
    3865                 /** This action is documented in wp-includes/taxonomy-functions.php */
     3865                /** This action is documented in wp-includes/taxonomy.php */
    38663866                do_action( 'edit_term_taxonomy', $term, $taxonomy->name );
    38673867                $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
    38683868
    3869                 /** This action is documented in wp-includes/taxonomy-functions.php */
     3869                /** This action is documented in wp-includes/taxonomy.php */
    38703870                do_action( 'edited_term_taxonomy', $term, $taxonomy->name );
    38713871        }
    … …  
    38903890                $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term ) );
    38913891
    3892                 /** This action is documented in wp-includes/taxonomy-functions.php */
     3892                /** This action is documented in wp-includes/taxonomy.php */
    38933893                do_action( 'edit_term_taxonomy', $term, $taxonomy->name );
    38943894                $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
    38953895
    3896                 /** This action is documented in wp-includes/taxonomy-functions.php */
     3896                /** This action is documented in wp-includes/taxonomy.php */
    38973897                do_action( 'edited_term_taxonomy', $term, $taxonomy->name );
    38983898        }
    … …  
    46004600        if ( empty( $object_id ) ) {
    46014601
    4602                 /** This filter is documented in wp-includes/taxonomy-functions.php */
     4602                /** This filter is documented in wp-includes/taxonomy.php */
    46034603                return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type );
    46044604        }
Note: See TracChangeset for help on using the changeset viewer.