URL logic problem
-
Hello. I found that url logic don`t work. In your script(/includes/conditional-logic/class-wpcode-conditional-page.php) I found function which return URL to compare. And it return nothing. $wp in this function is empty. print_r($wp) in this function return nothing.
public function get_page_url() { return isset( $wp->request ) ? trailingslashit( home_url( $wp->request ) ) : ''; }
I changed this function this way and its work fine:
public function get_page_url() { return isset( $wp->request ) ? trailingslashit( home_url( $wp->request ) ) : $_SERVER['REQUEST_URI']; }
Is there more proper way to solve this problem? Maybe you can make update?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘URL logic problem’ is closed to new replies.