WordPress.org

Ready to get started?Download WordPress

Forums

YARPP Experiments
[resolved] Bug in new pingback blocking function (3 posts)

  1. smerriman
    Member
    Posted 1 year ago #

    Hi,

    There is a bug in the new yarpp_pingback_maybe_block_pingback function. I am using a plugin which hooks into init() and calls the get_permalink() function. This calls that pingback function at a time when the global $yarpp option does not exist, and you are calling a function on that object so it is crashing.

    Replacing:

    if ( !yarpp_get_option('experiment_pingback') || !$yarpp->cache->is_yarpp_time() )

    with

    if ( !$yarpp || !yarpp_get_option('experiment_pingback') || !$yarpp->cache->is_yarpp_time() )

    should fix the problem.

    http://wordpress.org/extend/plugins/yarpp-experiments/

  2. habilmundir
    Member
    Posted 1 year ago #

    I'm using feedwordpress and wp-book-little, calling url wwww...myblog.com/?update_feedwordpress=1 each hour with cron. I am using yarpp and yarpp-experiments too, but when feedwordpress publish a new article, it fails.

    Now I can see that $yarpp was not initialized.

    Thanks for your fix.

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    This will be fixed in the next version. Here it is if you'd like to test it out. Thanks!

    http://downloads.wordpress.org/plugin/yarpp-experiments.zip

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.