All in One SEO Pack
[resolved] Quick question (2 posts)

  1. Ian Price
    Posted 3 years ago #

    This is a question for the developer, hopefully a very quick one for them.

    I am unsure if my system has some dodgy data in it, or if there is a slight issue with a code line in version

    In the file aioseop.class.php, line 550.
    } elseif ( $query->is_archive && function_exists( 'get_post_type_archive_link' ) && ( $post_type = get_query_var( 'post_type' ) ) ) {

    Is that supposed to read $post_type = get_query_var( 'post_type' )

    or is that a mistake, and it should be
    $post_type == get_query_var( 'post_type' )

    As it was in the previous version looking at the svn.

    As I said this is a quick question, that if someone could answer - then I can set about trawling my data to track an issue.

    Thanks very much



  2. Peter Baylies
    Plugin Author

    Posted 3 years ago #


    This is correct, and that's why that change was reverted; using equals here will check if the value returned is true as well as set the $post_type variable which is used in the if block when all the conditions evaluate to true, so it's a bit of a shortcut.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All in One SEO Pack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.