Changeset 37259
- Timestamp:
- 04/20/2016 02:46:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r37258 r37259 2963 2963 * @since 3.0.0 2964 2964 * 2965 * @param string $path Optional. Path relative to the home url. Default empty.2966 * @param string|null $scheme Optional. Scheme to give the home urlcontext. Accepts2965 * @param string $path Optional. Path relative to the home URL. Default empty. 2966 * @param string|null $scheme Optional. Scheme to give the home URL context. Accepts 2967 2967 * 'http', 'https', 'relative', 'rest', or null. Default null. 2968 * @return string Home urllink with optional path appended.2968 * @return string Home URL link with optional path appended. 2969 2969 */ 2970 2970 function home_url( $path = '', $scheme = null ) { … … 3039 3039 * @since 3.0.0 3040 3040 * 3041 * @param string $path Optional. Path relative to the site url. Default empty.3042 * @param string $scheme Optional. Scheme to give the site urlcontext. See set_url_scheme().3043 * @return string Site urllink with optional path appended.3041 * @param string $path Optional. Path relative to the site URL. Default empty. 3042 * @param string $scheme Optional. Scheme to give the site URL context. See set_url_scheme(). 3043 * @return string Site URL link with optional path appended. 3044 3044 */ 3045 3045 function site_url( $path = '', $scheme = null ) { … … 3058 3058 * 3059 3059 * @param int $blog_id Optional. Site ID. Default null (current site). 3060 * @param string $path Optional. Path relative to the site url. Default empty.3061 * @param string $scheme Optional. Scheme to give the site urlcontext. Accepts3060 * @param string $path Optional. Path relative to the site URL. Default empty. 3061 * @param string $scheme Optional. Scheme to give the site URL context. Accepts 3062 3062 * 'http', 'https', 'login', 'login_post', 'admin', or 3063 3063 * 'relative'. Default null. 3064 * @return string Site urllink with optional path appended.3064 * @return string Site URL link with optional path appended. 3065 3065 */ 3066 3066 function get_site_url( $blog_id = null, $path = '', $scheme = null ) { … … 3097 3097 * @since 2.6.0 3098 3098 * 3099 * @param string $path Optional path relative to the admin url.3099 * @param string $path Optional path relative to the admin URL. 3100 3100 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 3101 3101 * 'http' or 'https' can be passed to force those schemes. 3102 * @return string Admin urllink with optional path appended.3102 * @return string Admin URL link with optional path appended. 3103 3103 */ 3104 3104 function admin_url( $path = '', $scheme = 'admin' ) { … … 3112 3112 * 3113 3113 * @param int $blog_id Optional. Site ID. Default null (current site). 3114 * @param string $path Optional. Path relative to the admin url. Default empty.3114 * @param string $path Optional. Path relative to the admin URL. Default empty. 3115 3115 * @param string $scheme Optional. The scheme to use. Accepts 'http' or 'https', 3116 3116 * to force those schemes. Default 'admin', which obeys 3117 3117 * force_ssl_admin() and is_ssl(). 3118 * @return string Admin urllink with optional path appended.3118 * @return string Admin URL link with optional path appended. 3119 3119 */ 3120 3120 function get_admin_url( $blog_id = null, $path = '', $scheme = 'admin' ) { … … 3141 3141 * @since 2.6.0 3142 3142 * 3143 * @param string $path Optional. Path relative to the includes url. Default empty.3144 * @param string $scheme Optional. Scheme to give the includes urlcontext. Accepts3143 * @param string $path Optional. Path relative to the includes URL. Default empty. 3144 * @param string $scheme Optional. Scheme to give the includes URL context. Accepts 3145 3145 * 'http', 'https', or 'relative'. Default null. 3146 * @return string Includes urllink with optional path appended.3146 * @return string Includes URL link with optional path appended. 3147 3147 */ 3148 3148 function includes_url( $path = '', $scheme = null ) { … … 3169 3169 * @since 2.6.0 3170 3170 * 3171 * @param string $path Optional. Path relative to the content url. Default empty.3172 * @return string Content urllink with optional path appended.3171 * @param string $path Optional. Path relative to the content URL. Default empty. 3172 * @return string Content URL link with optional path appended. 3173 3173 */ 3174 3174 function content_url( $path = '' ) { … … 3244 3244 * Retrieves the site URL for the current network. 3245 3245 * 3246 * Returns the site urlwith the appropriate protocol, 'https' if3246 * Returns the site URL with the appropriate protocol, 'https' if 3247 3247 * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is 3248 3248 * overridden. … … 3252 3252 * @see set_url_scheme() 3253 3253 * 3254 * @param string $path Optional. Path relative to the site url. Default empty.3255 * @param string $scheme Optional. Scheme to give the site urlcontext. Accepts3254 * @param string $path Optional. Path relative to the site URL. Default empty. 3255 * @param string $scheme Optional. Scheme to give the site URL context. Accepts 3256 3256 * 'http', 'https', or 'relative'. Default null. 3257 * @return string Site urllink with optional path appended.3257 * @return string Site URL link with optional path appended. 3258 3258 */ 3259 3259 function network_site_url( $path = '', $scheme = null ) { … … 3288 3288 * Retrieves the home URL for the current network. 3289 3289 * 3290 * Returns the home urlwith the appropriate protocol, 'https' is_ssl()3290 * Returns the home URL with the appropriate protocol, 'https' is_ssl() 3291 3291 * and 'http' otherwise. If `$scheme` is 'http' or 'https', `is_ssl()` is 3292 3292 * overridden. … … 3294 3294 * @since 3.0.0 3295 3295 * 3296 * @param string $path Optional. Path relative to the home url. Default empty.3297 * @param string $scheme Optional. Scheme to give the home urlcontext. Accepts3296 * @param string $path Optional. Path relative to the home URL. Default empty. 3297 * @param string $scheme Optional. Scheme to give the home URL context. Accepts 3298 3298 * 'http', 'https', or 'relative'. Default null. 3299 * @return string Home urllink with optional path appended.3299 * @return string Home URL link with optional path appended. 3300 3300 */ 3301 3301 function network_home_url( $path = '', $scheme = null ) { … … 3336 3336 * @since 3.0.0 3337 3337 * 3338 * @param string $path Optional path relative to the admin url. Default empty.3338 * @param string $path Optional path relative to the admin URL. Default empty. 3339 3339 * @param string $scheme Optional. The scheme to use. Default is 'admin', which obeys force_ssl_admin() 3340 3340 * and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3341 * @return string Admin urllink with optional path appended.3341 * @return string Admin URL link with optional path appended. 3342 3342 */ 3343 3343 function network_admin_url( $path = '', $scheme = 'admin' ) { … … 3367 3367 * @since 3.0.0 3368 3368 * 3369 * @param string $path Optional. Path relative to the admin url. Default empty.3369 * @param string $path Optional. Path relative to the admin URL. Default empty. 3370 3370 * @param string $scheme Optional. The scheme to use. Default is 'admin', which obeys force_ssl_admin() 3371 3371 * and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3372 * @return string Admin urllink with optional path appended.3372 * @return string Admin URL link with optional path appended. 3373 3373 */ 3374 3374 function user_admin_url( $path = '', $scheme = 'admin' ) { … … 3395 3395 * @since 3.1.0 3396 3396 * 3397 * @param string $path Optional. Path relative to the admin url. Default empty.3397 * @param string $path Optional. Path relative to the admin URL. Default empty. 3398 3398 * @param string $scheme Optional. The scheme to use. Default is 'admin', which obeys force_ssl_admin() 3399 3399 * and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3400 * @return string Admin urllink with optional path appended.3400 * @return string Admin URL link with optional path appended. 3401 3401 */ 3402 3402 function self_admin_url( $path = '', $scheme = 'admin' ) { … … 3415 3415 * @since 4.4.0 The 'rest' scheme was added. 3416 3416 * 3417 * @param string $url Absolute urlthat includes a scheme3417 * @param string $url Absolute URL that includes a scheme 3418 3418 * @param string|null $scheme Optional. Scheme to give $url. Currently 'http', 'https', 'login', 3419 3419 * 'login_post', 'admin', 'relative', 'rest', 'rpc', or null. Default null. … … 3470 3470 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() 3471 3471 * and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3472 * @return string Dashboard urllink with optional path appended.3472 * @return string Dashboard URL link with optional path appended. 3473 3473 */ 3474 3474 function get_dashboard_url( $user_id = 0, $path = '', $scheme = 'admin' ) { … … 3515 3515 * @param string $scheme Optional. The scheme to use. Default is 'admin', which obeys force_ssl_admin() 3516 3516 * and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3517 * @return string Dashboard urllink with optional path appended.3517 * @return string Dashboard URL link with optional path appended. 3518 3518 */ 3519 3519 function get_edit_profile_url( $user_id = 0, $scheme = 'admin' ) {
Note: See TracChangeset
for help on using the changeset viewer.