Changeset 30753 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 12/06/2014 09:23:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r30656 r30753 2588 2588 * 2589 2589 * Returns the 'home' option with the appropriate protocol, 'https' if 2590 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is2591 * overridden.2590 * {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https', 2591 * `is_ssl()` is overridden. 2592 2592 * 2593 2593 * @since 3.0.0 2594 2594 * 2595 * @param string $path (optional) Path relative to the home url. 2596 * @param string $scheme (optional) Scheme to give the home url context. Currently 'http', 'https', or 'relative'. 2595 * @param string $path Optional. Path relative to the home url. Default empty. 2596 * @param string $scheme Optional. Scheme to give the home url context. Accepts 2597 * 'http', 'https', or 'relative'. Default null. 2597 2598 * @return string Home url link with optional path appended. 2598 2599 */ … … 2605 2606 * 2606 2607 * Returns the 'home' option with the appropriate protocol, 'https' if 2607 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is 2608 * {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https', 2609 * `is_ssl()` is 2608 2610 * overridden. 2609 2611 * 2610 2612 * @since 3.0.0 2611 2613 * 2612 * @param int $blog_id (optional) Blog ID. Defaults to current blog. 2613 * @param string $path (optional) Path relative to the home url. 2614 * @param string $scheme (optional) Scheme to give the home url context. Currently 'http', 'https', or 'relative'. 2615 * @return string Home url link with optional path appended. 2614 * @param int $blog_id Optional. Blog ID. Default null (current blog). 2615 * @param string $path Optional. Path relative to the home URL. Default empty. 2616 * @param string|null $orig_scheme Optional. Scheme to give the home URL context. Accepts 2617 * 'http', 'https', 'relative', or null. Default null. 2618 * @return string Home URL link with optional path appended. 2616 2619 */ 2617 2620 function get_home_url( $blog_id = null, $path = '', $scheme = null ) { … … 2672 2675 * 2673 2676 * Returns the 'site_url' option with the appropriate protocol, 'https' if 2674 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is2675 * overridden.2677 * {@see is_ssl()} and 'http' otherwise. If `$scheme` is 'http' or 'https', 2678 * `is_ssl()` is overridden. 2676 2679 * 2677 2680 * @since 3.0.0 2678 2681 * 2679 * @param int $blog_id (optional) Blog ID. Defaults to current blog. 2680 * @param string $path Optional. Path relative to the site url. 2681 * @param string $scheme Optional. Scheme to give the site url context. Currently 'http', 'https', 'login', 'login_post', 'admin', or 'relative'. 2682 * @param int $blog_id Optional. Blog ID. Default null (current site). 2683 * @param string $path Optional. Path relative to the site url. Default empty. 2684 * @param string $scheme Optional. Scheme to give the site url context. Accepts 2685 * 'http', 'https', 'login', 'login_post', 'admin', or 2686 * 'relative'. Default null. 2682 2687 * @return string Site url link with optional path appended. 2683 2688 */ … … 2724 2729 2725 2730 /** 2726 * Retrieve the url to the admin area for a given site.2731 * Retrieves the url to the admin area for a given site. 2727 2732 * 2728 2733 * @since 3.0.0 2729 2734 * 2730 * @param int $blog_id (optional) Blog ID. Defaults to current blog. 2731 * @param string $path Optional path relative to the admin url. 2732 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 2735 * @param int $blog_id Optional. Blog ID. Default null (current site). 2736 * @param string $path Optional. Path relative to the admin url. Default empty. 2737 * @param string $scheme Optional. The scheme to use. Accepts 'http' or 'https', 2738 * to force those schemes. Default 'admin', which obeys 2739 * {@see force_ssl_admin()} and {@see is_ssl()}. 2733 2740 * @return string Admin url link with optional path appended. 2734 2741 */ … … 2897 2904 2898 2905 /** 2899 * Retrieve the home url for the current network.2900 * 2901 * Returns the home url with the appropriate protocol, 'https' if2902 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl()is2906 * Retrieves the home url for the current network. 2907 * 2908 * Returns the home url with the appropriate protocol, 'https' {@see is_ssl()} 2909 * and 'http' otherwise. If `$scheme` is 'http' or 'https', `is_ssl()` is 2903 2910 * overridden. 2904 2911 * 2905 2912 * @since 3.0.0 2906 2913 * 2907 * @param string $path (optional) Path relative to the home url. 2908 * @param string $scheme (optional) Scheme to give the home url context. Currently 'http', 'https', or 'relative'. 2914 * @param string $path Optional. Path relative to the home url. Default empty. 2915 * @param string $scheme Optional. Scheme to give the home url context. Accepts 2916 * 'http', 'https', or 'relative'. Default null. 2909 2917 * @return string Home url link with optional path appended. 2910 2918 */
Note: See TracChangeset
for help on using the changeset viewer.