Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/21/2017 07:14:09 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Common: introduce bbp_get_url_scheme() to simplify 'https' vs 'http' scheme concatenation.

This change improves code flow and reduces complexity by eliminating the number of inline is_ssl() checks necessary when URLs are being generated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/ajax.php

    r6758 r6760  
    3333        global $wp;
    3434
    35         $ssl      = is_ssl() ? 'https' : 'http';
     35        $ssl      = bbp_get_url_scheme();
    3636        $url      = trailingslashit( $wp->request );
    3737        $base_url = home_url( $url, $ssl );
Note: See TracChangeset for help on using the changeset viewer.