WordPress.org

Ready to get started?Download WordPress

Forums

Handle External Links
[Bug] Trying to loop on unset variable (2 posts)

  1. ururk
    Member
    Posted 1 year ago #

    Please either add default values, or set to an empty array for these two values:

    $blacklist_url
    $whitelist_url

    Errors:

    PHP Warning:  Invalid argument supplied for foreach() in /usr/share/wordpress/wp-content/plugins/handle-external-links/handleEL.php on line 425
    PHP Warning:  Invalid argument supplied for foreach() in /usr/share/wordpress/wp-content/plugins/handle-external-links/handleEL.php on line 437

    Simple solution (untested):

    $blacklist_url = array(); // add to line 361
    $whitelist_url = array(); // add to line 346

    Thanks!

    http://wordpress.org/extend/plugins/handle-external-links/

  2. getwebinspiration
    Member
    Plugin Author

    Posted 10 months ago #

    Hi ururk and sorry for my late reply!

    I haven't had a lot of time working on this plugin lately and I'm sorry about that. Good news though, I added a github repo and you're very welcome to make a pull request over there.

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.