Plugin Directory

Changeset 1351979

Timestamp:
02/16/2016 04:57:53 PM (8 years ago)
Author:
dougal
Message:

Fix per-post override logic for NOODP and NOYDIR options.

File:
1 edited

Legend:

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

    r1348377 r1351979  
    17751775                     ( ( $aiosp_nofollow == '' ) && ( !empty( $aioseop_options['aiosp_cpostnofollow'] ) ) && ( in_array( $post_type, $aioseop_options['aiosp_cpostnofollow'] ) ) ) )
    17761776                    $nofollow = "no" . $nofollow;
    1777                 if ( ( !empty( $aioseop_options['aiosp_cpostnoodp'] ) && ( in_array( $post_type, $aioseop_options['aiosp_cpostnoodp'] ) ) ) )
     1777                if ( ( ) ) ) )
    17781778                    $aiosp_noodp = true;
    1779                 if ( ( !empty( $aioseop_options['aiosp_cpostnoydir'] ) && ( in_array( $post_type, $aioseop_options['aiosp_cpostnoydir'] ) ) ) )
     1779                else
     1780                    $aiosp_noodp = false;
     1781                if ( ( $aiosp_noydir == 'on' ) || ( empty( $aiosp_noydir ) && ( !empty( $aioseop_options['aiosp_cpostnoydir'] ) && ( in_array( $post_type, $aioseop_options['aiosp_cpostnoydir'] ) ) ) ) )
    17801782                    $aiosp_noydir = true;
     1783
     1784
    17811785            }
    17821786        }
Note: See TracChangeset for help on using the changeset viewer.