WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/27/2016 02:54:33 AM (5 years ago)
Author:
ericlewis
Message:

General: Document the difference between site_url() and home_url().

site_url() returns a url where WordPress application files are accessible (e.g. where the wp-admin/ folder resides). home_url() returns a url where the front-end of the WordPress site can be visited.

See #35238.

File:
1 edited

Legend:

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

    r36386 r36408  
    29262926
    29272927/**
    2928  * Retrieve the home url for the current site.
     2928 * Retrieve the url for the current site where the front-end of the site is accessible.
    29292929 *
    29302930 * Returns the 'home' option with the appropriate protocol, 'https' if
     
    29442944
    29452945/**
    2946  * Retrieve the home url for a given site.
     2946 * Retrieve the url for a given site where the front-end of the site is accessible.
    29472947 *
    29482948 * Returns the 'home' option with the appropriate protocol, 'https' if
     
    30013001
    30023002/**
    3003  * Retrieve the site url for the current site.
     3003 * Retrieve the url for the current site where WordPress application files
     3004 * (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible.
    30043005 *
    30053006 * Returns the 'site_url' option with the appropriate protocol, 'https' if
     
    30183019
    30193020/**
    3020  * Retrieve the site url for a given site.
     3021 * Retrieve the url for a given site where WordPress application files
     3022 * (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible.
    30213023 *
    30223024 * Returns the 'site_url' option with the appropriate protocol, 'https' if
Note: See TracChangeset for help on using the changeset viewer.