WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Returns (2 posts)

  1. inventfilm
    Member
    Posted 3 years ago #

    I have a page called:

    Returns

    To make your plugin function properly I had to modify the code.

    $wl_value=(stristr($wl_value, "return"))?$wl_value:"return (".$wl_value.");";
    changed to:

    $wl_value=(stristr($wl_value, "return "))?$wl_value:"return (".$wl_value.");";

    Note the extra space after "return

  2. alanft
    Member
    Plugin Author

    Posted 3 years ago #

    this is something i might add to the FAQ actually.

    you can workround this without changing the plugin code, by changing your WL to explictly include return and end with a ';' so if your code is

    is_page('returns')

    change it to

    return is_page('returns');

    HTH

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic