Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused URL helper for SSL handling #1055

Merged
merged 1 commit into from Apr 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 5 additions & 9 deletions gp-includes/url.php
Expand Up @@ -90,16 +90,12 @@ function gp_url_add_path_and_query( $base, $path, $query ) {
}

/**
* Converts an absolute URL to the corresponding SSL URL if the GlotPress
* settings allow SSL
* Retrieves the URL for the GlotPress root page.
*
* @since 1.0.0
*
* @return string GlotPress root page URL.
*/
function gp_url_ssl( $url ) {
if ( defined( 'GP_SSL' ) && GP_SSL ) {
$url = preg_replace( '/^http:/', 'https:', $url );
}
return $url;
}

function gp_url_public_root() {
return home_url( gp_url_base_path() );
}
Expand Down