Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Server on `http://` returns `https://` links #51
Comments
|
Same problem for |
|
Worth noting that So the right filter in that case would probably be |
|
@swissspidy yep, i find what |
|
I'm not sure this can be easily solved. You still have all the links that are stored throughout post content fields that point to Maybe a better approach would be to add a flag |
|
@schlessera we rewrite url in production, but for development mode will be great have valid url |
If you have site on
httpsand run php server onhttpthe functionget_site_icon_urlreturn a link withhttps.I think the problem here https://github.com/WordPress/WordPress/blob/master/wp-includes/general-template.php#L810, because WordPress should use here
get_site_url()insteadget_option( 'site_icon' ).Maybe we can add filter on
get_site_icon_urlto fix it problem or we should fix it in WordPress?