WordPress.org

Make WordPress Core

Changeset 39054


Ignore:
Timestamp:
10/31/2016 07:05:22 AM (19 months ago)
Author:
DrewAPicture
Message:

Docs: Clarify descriptions for home_url() and get_home_url() on the true effect of the $scheme parameter.

Part props thomaswm.
Props stevenlinx.
Fixes #36468.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r38928 r39054  
    29552955 * Retrieves the URL for the current site where the front end is accessible.
    29562956 *
    2957  * Returns the 'home' option with the appropriate protocol, 'https' if
    2958  * is_ssl() and 'http' otherwise. If `$scheme` is 'http' or 'https',
    2959  * `is_ssl()` is overridden.
     2957 * Returns the 'home' option with the appropriate protocol. The protocol will be 'https'
     2958 * if is_ssl() evaluates to true; otherwise, it will be the same as the 'home' option.
     2959 * If `$scheme` is 'http' or 'https', is_ssl() is overridden.
    29602960 *
    29612961 * @since 3.0.0
     
    29732973 * Retrieves the URL for a given site where the front end is accessible.
    29742974 *
    2975  * Returns the 'home' option with the appropriate protocol, 'https' if
    2976  * is_ssl() and 'http' otherwise. If `$scheme` is 'http' or 'https',
    2977  * `is_ssl()` is overridden.
     2975 * Returns the 'home' option with the appropriate protocol. The protocol will be 'https'
     2976 * if is_ssl() evaluates to true; otherwise, it will be the same as the 'home' option.
     2977 * If `$scheme` is 'http' or 'https', is_ssl() is overridden.
    29782978 *
    29792979 * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.