includes/class-freemius.php
function current_page_url() {
            $url = 'http';

            if ( isset( $_SERVER["HTTPS"] ) ) {
                if ( $_SERVER["HTTPS"] == "on" ) {
                    $url .= "s";
                }
            }
            $url .= "://";
            if ( $_SERVER["SERVER_PORT"] != "80" ) {
                $url .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
            } else {
                $url .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
            }

            return esc_url( $url );
        }
function current_page_url() {
            $url = 'http';

            if ( isset( $_SERVER["HTTPS"] ) ) {
                if ( $_SERVER["HTTPS"] == "on" ) {
                    $url .= "s";
                }
            }
            $url .= "://";
            if ( $_SERVER["SERVER_PORT"] != "80" ) {
                $url .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
            } else {
                $url .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
            }

            return esc_url( $url );
        }
function current_page_url ( ) { $ url = 'http' ; if ( isset ( $ _SERVER [ "HTTPS" ] ) ) { if ( $ _SERVER [ "HTTPS" ] == "on" ) { $ url .= "s" ; } } $ url .= "://" ; if ( $ _SERVER [ "SERVER_PORT" ] != "80" ) { $ url .= $ _SERVER [ "SERVER_NAME" ] . ":" . $ _SERVER [ "SERVER_PORT" ] . $ _SERVER [ "REQUEST_URI" ] ; } else { $ url .= $ _SERVER [ "SERVER_NAME" ] . $ _SERVER [ "REQUEST_URI" ] ; } return esc_url ( $ url ) ; }
Return current page's URL.

@author Vova Feldman (@svovaf)
@since  1.0.7

@return string
Return current page s URL .