Skip to content

Commit

Permalink
Remove unused URL helper for SSL handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 committed Apr 12, 2020
1 parent 958f7f7 commit c0274fc
Showing 1 changed file with 5 additions and 9 deletions.
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

0 comments on commit c0274fc

Please sign in to comment.