Yoast SEO
[Plugin: WordPress SEO by Yoast] Small bug report + fix (1 post)

  1. Dan-Lucian Stefancu
    Posted 3 years 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(). :)



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

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


No tags yet.