2014-05-13, 13:07:35
(This post was last modified: 2014-05-13, 13:11:11 by johnstray2001.)
Fo some reason that I cannot determine, the call to function get_page_slug() is returning the full url of the page rather that the actual slug.
Does anyone have any idea what wrong and how I can fix it?
The file theme_functions.php where the function lies, references the global variable $url, which contains the same data. The $url variable is set in index.php and references $data_index->url and from there I haven't been able to back trace it.
Edit:
$data_index->url contains only the page slug. So, my guess is that there is a plugin or something that is using a variable $url, but is casting it globally and therefore messing with the GS global variable $url.
Hmmm... Further investigation is needed. Any input welcome...
Does anyone have any idea what wrong and how I can fix it?
The file theme_functions.php where the function lies, references the global variable $url, which contains the same data. The $url variable is set in index.php and references $data_index->url and from there I haven't been able to back trace it.
Edit:
$data_index->url contains only the page slug. So, my guess is that there is a plugin or something that is using a variable $url, but is casting it globally and therefore messing with the GS global variable $url.
Hmmm... Further investigation is needed. Any input welcome...
Check out my website: JohnStray.com