-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Thanks for WP-Members.
When [wpmem_tos url="http://yoursite.com/your-tos-page"] is set,
strpos( $atts['url'], 'http://' )
return int 0
Since int 0 is considered false by PHP, the function tos will not return $atts['url'] in this case.
It should need the === operator to test the return value of this function.
wp-members-dev/includes/class-wp-members-shortcodes.php
Lines 720 to 723 in 33018aa
| function tos( $atts, $content, $tag ) { | |
| $url = ( strpos( $atts['url'], 'http://' ) || strpos( $atts['url'], 'https://' ) ) ? $atts['url'] : home_url( $atts['url'] ); | |
| return esc_url( $url ); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels