Changeset 36386
- Timestamp:
- 01/23/2016 04:46:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r36308 r36386 29 29 30 30 /** 31 * Retrieve trailing slash string, if blogset for adding trailing slashes.31 * Retrieve trailing slash string, if site is set for adding trailing slashes. 32 32 * 33 33 * Conditionally adds a trailing slash if the permalink structure has a trailing 34 34 * slash, strips the trailing slash if not. The string is passed through the 35 35 * 'user_trailingslashit' filter. Will remove trailing slash from string, if 36 * blogis not set to have them.36 * site is not set to have them. 37 37 * 38 38 * @since 2.2.0 … … 1433 1433 1434 1434 /** 1435 * Display edit bookmark (literally a URL external to blog)link.1435 * Display edit bookmark link. 1436 1436 * 1437 1437 * @since 2.7.0 … … 1449 1449 1450 1450 /** 1451 * Filter the bookmark (link)edit link.1451 * Filter the bookmark edit link. 1452 1452 * 1453 1453 * @since 2.7.0 … … 1460 1460 1461 1461 /** 1462 * Display edit bookmark (literally a URL external to blog)link anchor content.1462 * Display edit bookmark link anchor content. 1463 1463 * 1464 1464 * @since 2.7.0 … … 2955 2955 * @global string $pagenow 2956 2956 * 2957 * @param int $blog_id Optional. Blog ID. Default null (current blog).2957 * @param int $blog_id Optional. Site ID. Default null (current site). 2958 2958 * @param string $path Optional. Path relative to the home URL. Default empty. 2959 2959 * @param string|null $scheme Optional. Scheme to give the home URL context. Accepts … … 2995 2995 * @param string|null $orig_scheme Scheme to give the home URL context. Accepts 'http', 'https', 2996 2996 * 'relative', 'rest', or null. 2997 * @param int|null $blog_id Blog ID, or null for the current blog.2997 * @param int|null $blog_id Site ID, or null for the current site. 2998 2998 */ 2999 2999 return apply_filters( 'home_url', $url, $path, $orig_scheme, $blog_id ); … … 3026 3026 * @since 3.0.0 3027 3027 * 3028 * @param int $blog_id Optional. BlogID. Default null (current site).3028 * @param int $blog_id Optional. Site ID. Default null (current site). 3029 3029 * @param string $path Optional. Path relative to the site url. Default empty. 3030 3030 * @param string $scheme Optional. Scheme to give the site url context. Accepts … … 3056 3056 * @param string|null $scheme Scheme to give the site URL context. Accepts 'http', 'https', 'login', 3057 3057 * 'login_post', 'admin', 'relative' or null. 3058 * @param int|null $blog_id Blog ID, or null for the current blog.3058 * @param int|null $blog_id Site ID, or null for the current site. 3059 3059 */ 3060 3060 return apply_filters( 'site_url', $url, $path, $scheme, $blog_id ); … … 3079 3079 * @since 3.0.0 3080 3080 * 3081 * @param int $blog_id Optional. BlogID. Default null (current site).3081 * @param int $blog_id Optional. Site ID. Default null (current site). 3082 3082 * @param string $path Optional. Path relative to the admin url. Default empty. 3083 3083 * @param string $scheme Optional. The scheme to use. Accepts 'http' or 'https', … … 3099 3099 * @param string $url The complete admin area URL including scheme and path. 3100 3100 * @param string $path Path relative to the admin area URL. Blank string if no path is specified. 3101 * @param int|null $blog_id Blog ID, or null for the current blog.3101 * @param int|null $blog_id Site ID, or null for the current site. 3102 3102 */ 3103 3103 return apply_filters( 'admin_url', $url, $path, $blog_id ); … … 3353 3353 3354 3354 /** 3355 * Retrieve the url to the admin area for either the current blogor the network depending on context.3355 * Retrieve the url to the admin area for either the current site or the network depending on context. 3356 3356 * 3357 3357 * @since 3.1.0 … … 3422 3422 * If a user does not belong to any site, the global user dashboard is used. If the user belongs to the current site, 3423 3423 * the dashboard for the current site is returned. If the user cannot edit the current site, the dashboard to the user's 3424 * primary blogis returned.3424 * primary site is returned. 3425 3425 * 3426 3426 * @since 3.1.0 3427 3427 * 3428 3428 * @param int $user_id Optional. User ID. Defaults to current user. 3429 * @param string $path Optional path relative to the dashboard. Use only paths known to both blogand user admins.3429 * @param string $path Optional path relative to the dashboard. Use only paths known to both site and user admins. 3430 3430 * @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. 3431 3431 * @return string Dashboard url link with optional path appended. … … 3532 3532 3533 3533 /** 3534 * Return a shortlink for a post, page, attachment, or blog.3534 * Return a shortlink for a post, page, attachment, or a site. 3535 3535 * 3536 3536 * This function exists to provide a shortlink tag that all themes and plugins can target. A plugin must hook in to … … 3541 3541 * @since 3.0.0. 3542 3542 * 3543 * @param int $id A post or blog id. Default is 0, which means the current post or blog.3544 * @param string $context Whether the id is a ' blog' id, 'post' id, or 'media' id.3543 * @param int $id A post or site id. Default is 0, which means the current post or site. 3544 * @param string $context Whether the id is a 'site' id, 'post' id, or 'media' id. 3545 3545 * If 'post', the post_type of the post is consulted. 3546 3546 * If 'query', the current query is consulted to determine the id and context.
Note: See TracChangeset
for help on using the changeset viewer.