Plugin Directory

Changeset 1354253

Timestamp:
02/19/2016 03:33:29 PM (8 years ago)
Author:
dougal
Message:

Bugfix: Allow nofollow, noodp, noydir options for cat/tax to work correctly with global noindex.

File:
1 edited

Legend:

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

    r1353803 r1354253  
    19141914            || ( is_tax() && in_array( get_query_var( 'taxonomy' ), $tax_noindex ) ) ) {
    19151915                $noindex = 'noindex';
    1916         } elseif ( ( is_single() || is_page() || $this->is_static_posts_page() || is_attachment() || is_category() || is_tag() || is_tax() || ( $page > 1 ) ) ) {
     1916        }
     1917        if ( ( is_single() || is_page() || $this->is_static_posts_page() || is_attachment() || is_category() || is_tag() || is_tax() || ( $page > 1 ) ) ) {
    19171918            $post_type = get_post_type();
    19181919            if ( !empty( $opts ) ) {
     
    19271928                if ( ( $aiosp_noindex == 'on' ) || ( ( !empty( $aioseop_options['aiosp_paginated_noindex'] ) ) && ( ( $page > 1 ) ) ) ||
    19281929                     ( ( $aiosp_noindex == '' ) && ( !empty( $aioseop_options['aiosp_cpostnoindex'] ) ) && ( in_array( $post_type, $aioseop_options['aiosp_cpostnoindex'] ) ) ) )
    1929                     $noindex = "no" . $noindex;
     1930                    $noindex = "no;
    19301931                if ( ( $aiosp_nofollow == 'on' ) || ( ( !empty( $aioseop_options['aiosp_paginated_nofollow'] ) ) && ( ( $page > 1 ) ) ) ||
    19311932                     ( ( $aiosp_nofollow == '' ) && ( !empty( $aioseop_options['aiosp_cpostnofollow'] ) ) && ( in_array( $post_type, $aioseop_options['aiosp_cpostnofollow'] ) ) ) )
    1932                     $nofollow = "no" . $nofollow;
     1933                    $nofollow = "no;
    19331934                if ( ( $aiosp_noodp == 'on' ) || ( empty( $aiosp_noodp ) && ( !empty( $aioseop_options['aiosp_cpostnoodp'] ) && ( in_array( $post_type, $aioseop_options['aiosp_cpostnoodp'] ) ) ) ) )
    19341935                    $aiosp_noodp = true;
Note: See TracChangeset for help on using the changeset viewer.