~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-term.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
 
177
177
                        // Don't return terms from invalid taxonomies.
178
178
                        if ( ! taxonomy_exists( $_term->taxonomy ) ) {
179
 
                                return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy' ) );
 
179
                                return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) );
180
180
                        }
181
181
 
182
182
                        $_term = sanitize_term( $_term, $_term->taxonomy, 'raw' );