WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ian Price
    Member
    Posted 1 year 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 1.6.15.2.

    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

    Ian

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 1 year ago #

    Ian,

    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

About this Topic

Tags

No tags yet.