How to use conditional logic with $_SERVER[“REQUEST_URI”] ?
-
Is it possible to use conditional logic to display a widget when a certain directory is present in the URL? I have been doing it with this:
( strpos( $_SERVER["REQUEST_URI"], "/directory-name/" ) !== false )This worked in 4.0.8.
This method no longer works in 4.0.9.
This isn’t the first upgrade that disabled this. Is there another method I should use?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘How to use conditional logic with $_SERVER[“REQUEST_URI”] ?’ is closed to new replies.