| @@ 101-103 (lines=3) @@ | ||
| 98 | $return_url = wc_get_endpoint_url( 'order-received', '', wc_get_page_permalink( 'checkout' ) ); |
|
| 99 | } |
|
| 100 | ||
| 101 | if ( is_ssl() || get_option('woocommerce_force_ssl_checkout') == 'yes' ) { |
|
| 102 | $return_url = str_replace( 'http:', 'https:', $return_url ); |
|
| 103 | } |
|
| 104 | ||
| 105 | return apply_filters( 'woocommerce_get_return_url', $return_url, $order ); |
|
| 106 | } |
|
| @@ 335-340 (lines=6) @@ | ||
| 332 | */ |
|
| 333 | function wc_get_checkout_url() { |
|
| 334 | $checkout_url = wc_get_page_permalink( 'checkout' ); |
|
| 335 | if ( $checkout_url ) { |
|
| 336 | // Force SSL if needed |
|
| 337 | if ( is_ssl() || 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) ) { |
|
| 338 | $checkout_url = str_replace( 'http:', 'https:', $checkout_url ); |
|
| 339 | } |
|
| 340 | } |
|
| 341 | ||
| 342 | return apply_filters( 'woocommerce_get_checkout_url', $checkout_url ); |
|
| 343 | } |
|
| @@ 2018-2020 (lines=3) @@ | ||
| 2015 | ||
| 2016 | $pay_url = wc_get_endpoint_url( 'order-pay', $this->id, wc_get_page_permalink( 'checkout' ) ); |
|
| 2017 | ||
| 2018 | if ( 'yes' == get_option( 'woocommerce_force_ssl_checkout' ) || is_ssl() ) { |
|
| 2019 | $pay_url = str_replace( 'http:', 'https:', $pay_url ); |
|
| 2020 | } |
|
| 2021 | ||
| 2022 | if ( $on_checkout ) { |
|
| 2023 | $pay_url = add_query_arg( 'key', $this->order_key, $pay_url ); |
|
| @@ 2040-2042 (lines=3) @@ | ||
| 2037 | ||
| 2038 | $order_received_url = wc_get_endpoint_url( 'order-received', $this->id, wc_get_page_permalink( 'checkout' ) ); |
|
| 2039 | ||
| 2040 | if ( 'yes' == get_option( 'woocommerce_force_ssl_checkout' ) || is_ssl() ) { |
|
| 2041 | $order_received_url = str_replace( 'http:', 'https:', $order_received_url ); |
|
| 2042 | } |
|
| 2043 | ||
| 2044 | $order_received_url = add_query_arg( 'key', $this->order_key, $order_received_url ); |
|
| 2045 | ||