• Resolved jerzyk

    (@jerzyk)


    when you have wordpress behind proxy, menu items in the top menu of ad-inserter are incorrect.

    this is because *incorectly* there is *wrong* function remove_parameters_from_url which is calling even worst one current_url.

    why this is wrong? because plugin is trying to build an url from other data, which may not be correct when there are reverse proxies used for wordpress.

    this has an impact on both single- and multi-site installations.

    fixes? yes
    best one: use wordpress’es remove_query_arg
    so so: remove current_url and use $_SERVER["REQUEST_URI"]

    workaround:

    
    function current_url () {
        return $_SERVER["REQUEST_URI"];
    }
    
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wrong urls in menu’ is closed to new replies.