WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Small bug report + fix (1 post)

  1. Dan-Lucian Stefancu
    Member
    Posted 1 year ago #

    WordPress version: 3.4.1
    WordPress SEO version: 1.2.5

    I did this: enabled wp_debug
    I expected the plugin to do this: throw no errors
    Instead it did this: threw errors

    On /admin/class-metabox.php:1366 get_children() is called with an attribute that cause some errors. get_children() shouldn't be called with 'fields' => 'ids'.

    This is in fact a WordPress eroor, as get_children(), wich uses get_posts(), doesn't verify if get_posts() returns an array of objects or an array of ids, and it expects an array of objects. This will cause a cascade of errors.

    Fix: just change get_children() with get_posts(). :)

    Thx.

    http://wordpress.org/extend/plugins/wordpress-seo/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Dan-Lucian Stefancu
  • This topic is not resolved
  • WordPress version: 3.4.1

Tags

No tags yet.