Support » Plugins and Hacks » All in One SEO Pack » [Resolved] Quick question

[Resolved] Quick question

  • 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



Viewing 1 replies (of 1 total)
  • Plugin Contributor Peter Baylies



    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Quick question’ is closed to new replies.
Skip to toolbar