if you go to a site that is https using an http format, then it automatically loads the https version.
if you go to a site that is http using an https format then it will come up with a not secure message
it therefore makes sense is that if no ‘httpx’ is given, you default to the http which ensures it loads in both cases.
if you only want to go to https sites, then enter the https in your link
I couldn’t explain…
If I type www.google.com
when I post the topic, it becomes http://www.google.com instead of https://www.google.com
Try writing a URL with only www and submitting the topic.
yes as stated above, that is expected behavior for the reasons stated above
But seriously, are you telling me that it is normal that if a user writes www.google.com
on bbpress it becomes http://www.google.com and not https:?
yes for the reasons stated above, ie the link will resolve to https if the site has ssl.
Not every site is https
that’s how the bbpress authors have decided it should work
99% of sites are in https and not http, so if you can, it would be a good idea to point this out to whoever handles bbpress updates.
People who type in a domain start with www and never type https, so it’s really annoying to see URLs in http.
since it is you asking 🙂
add_filter( 'bbp_make_clickable', 'rewst', 10 , 2 ) ;
function rewst ($ret, $text ){
$ret = str_replace ('http://' , 'https://' , $ret);
return $ret ;
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets