Plugin Directory

Changeset 1358401

Timestamp:
02/25/2016 10:14:15 PM (8 years ago)
Author:
dougal
Message:

Bugfix: Do not use post-level noindex-style robots meta in cat/tag/tax archives.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-seo-pack/trunk/aioseop_class.php

    r1356163 r1358401  
    13961396                        $get_opts[$field] = htmlspecialchars( stripslashes( $meta ) );
    13971397                    }
    1398                 } else {
     1398                } else {
    13991399                    $field = "aiosp_$f";
    14001400                    $meta = get_post_meta( $post_id, '_aioseop_' . $f, true );
     
    19201920            || ( is_tax() && in_array( get_query_var( 'taxonomy' ), $tax_noindex ) ) ) {
    19211921                $noindex = 'noindex';
    1922         }
    1923         if ( ( is_single() || is_page() || $this->is_static_posts_page() || is_attachment() || is_category() || is_tag() || is_tax() || ( $page > 1 ) ) ) {
     1922        } elseif ( ( is_single() || is_page() || $this->is_static_posts_page() || is_attachment() || is_category() || is_tag() || is_tax() || ( $page > 1 ) ) ) {
    19241923            $post_type = get_post_type();
    19251924            if ( !empty( $opts ) ) {
Note: See TracChangeset for help on using the changeset viewer.