WordPress.org

Ready to get started?Download WordPress

Forums

Content Warning
After clicking "Vstup" (Enter) it redirects to google (2 posts)

  1. rufussino
    Member
    Posted 1 year ago #

    Hi,
    I have a problem with your plugin. After clicking Vstup (Enter) it is still redirecting to google instead of our homepage., but after reentering the page is everything ok.

    Settings:
    enable site wide access from one dialog
    cookie expire time 1 day
    allowed overrides: no
    primary setting for overrides: dialog enabled

    EXIT what to use: google
    ENTER what to use: nothing

    http://bondageforyou.cz

    http://wordpress.org/extend/plugins/content-warning-v2/

  2. taosun
    Member
    Posted 1 year ago #

    I was having this same problem tonight- found a temporary solution (until the next update) by editing main.php in the plugin editor:

    change

    'enter_url' => (empty($enter_url) ? 'http://www.google.com' : $enter_url),'

    to

    'enter_url' => (empty($enter_url) ? get_permalink() : $enter_url),'

    There is a blink and reload after the person clicks ENTER, but at least it goes back to the page they were on. Also, the setting will have to be empty for the URL selection for this to work.

    Thanks for the plugin Jerry!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.