WordPress.org

Ready to get started?Download WordPress

Forums

Simple Section Navigation Widget
Plugin _get_post_ancestors is deprecated error with WP 3.5 (4 posts)

  1. akudaWeb
    Member
    Posted 1 year ago #

    Hello,

    I love this plugin, it's really saved a lot of time for me. I have upgraded a clients site to WordPress 3.5 and I now experience this error on each navigation section:

    Notice: _get_post_ancestors is deprecated since version 3.5 with no alternative available. in .../wp-includes/functions.php on line 2826

    Are there any plans to update this plugin and/or hot fix?

    Regards,
    Phil

    http://wordpress.org/extend/plugins/simple-section-navigation/

  2. andiszek
    Member
    Posted 1 year ago #

    hi, i`m experiencing the same problem:(

    is there an update available? can you please fix this?

    thank you!
    andi

  3. multicelldesign
    Member
    Posted 1 year ago #

    Hi,

    "with no alternative available" was a bit worrying but _get_post_ancestors is no longer needed as WP_Post lazy-loads the ancestors property with get_post_ancestors().

    Seeing as this is only used on line 42 of the plugin, I amended it myself by removing the first underscore.

    See http://codex.wordpress.org/Function_Reference/get_post_ancestors for the "new" function.

    Hope this helps, Karl

  4. Vajaah
    Member
    Posted 10 months ago #

    That does the trick. Thanks! @multicelldesign

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.