bug: if( $referer = wp_get_referer() && false …
-
if( ( $referer = wp_get_referer() ) && …
must be enclosed between parenthesis to give it precedence, otherwise $referer will be filled with the result of all the rest, that is:
$referer = wp_get_referer() && false !== strpos( $referer, ‘edit-tags.php’ )
resulting in unhexpected results, and more importantly I don’t think it would have been meant to be filled with that.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘bug: if( $referer = wp_get_referer() && false …’ is closed to new replies.