akudaWeb
Member
Posted 4 months 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/
andiszek
Member
Posted 3 months ago #
hi, i`m experiencing the same problem:(
is there an update available? can you please fix this?
thank you!
andi
multicelldesign
Member
Posted 3 months 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