URLHelper::is_external
not working for URLs without protocol
#1924
Labels
URLHelper::is_external
not working for URLs without protocol
#1924
Expected behavior
URLHelper::is_external
returns false for external URL's with no protocol.URLHelper::is_external('//github.com/')
=> trueURLHelper::is_external('https://github.com/')
=> trueActual behavior
URLHelper::is_external('//github.com/')
=> falseURLHelper::is_external('https://github.com/')
=> trueSteps to reproduce behavior
What version of WordPress, PHP and Timber are you using?
WordPress 5.0.3, PHP 7.2, Timber 1.8.4.
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)
Upgraded to newest version via plugin updater in WordPress dashboard.
The text was updated successfully, but these errors were encountered: