Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/23/2014 07:16:53 PM (10 years ago)
Author:
r-a-y
Message:

Replace wp_guess_url() with bp_get_requested_url().

wp_guess_url() doesn't work well with subdirectory installs and anyway,
bp_get_requested_url() is superior!

Fixes #5737.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-filters.php

    r8308 r8680  
    504504                $menu_item->_invalid = true;
    505505            } else {
    506                 $menu_item->url = wp_login_url( wp_guess_url() );
     506                $menu_item->url = wp_login_url( bp_get_requested_url() );
    507507            }
    508508
     
    513513                $menu_item->_invalid = true;
    514514            } else {
    515                 $menu_item->url = wp_logout_url( wp_guess_url() );
     515                $menu_item->url = wp_logout_url( bp_get_requested_url() );
    516516            }
    517517
Note: See TracChangeset for help on using the changeset viewer.