Changeset 50340
- Timestamp:
- 02/13/2021 03:15:00 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r50282 r50340 3256 3256 * @global string $pagenow 3257 3257 * 3258 * @param int 3258 * @param int|null $blog_id Optional. Site ID. Default null (current site). 3259 3259 * @param string $path Optional. Path relative to the home URL. Default empty. 3260 3260 * @param string|null $scheme Optional. Scheme to give the home URL context. Accepts … … 3313 3313 * @since 3.0.0 3314 3314 * 3315 * @param string $path Optional. Path relative to the site URL. Default empty.3316 * @param string $scheme Optional. Scheme to give the site URL context. See set_url_scheme().3315 * @param string $path Optional. Path relative to the site URL. Default empty. 3316 * @param string|null $scheme Optional. Scheme to give the site URL context. See set_url_scheme(). 3317 3317 * @return string Site URL link with optional path appended. 3318 3318 */ … … 3331 3331 * @since 3.0.0 3332 3332 * 3333 * @param int $blog_id Optional. Site ID. Default null (current site).3334 * @param string $path Optional. Path relative to the site URL. Default empty.3335 * @param string $scheme Optional. Scheme to give the site URL context. Accepts3336 * 'http', 'https', 'login', 'login_post', 'admin', or3337 * 'relative'. Default null.3333 * @param int|null $blog_id Optional. Site ID. Default null (current site). 3334 * @param string $path Optional. Path relative to the site URL. Default empty. 3335 * @param string|null $scheme Optional. Scheme to give the site URL context. Accepts 3336 * 'http', 'https', 'login', 'login_post', 'admin', or 3337 * 'relative'. Default null. 3338 3338 * @return string Site URL link with optional path appended. 3339 3339 */ … … 3372 3372 * @since 2.6.0 3373 3373 * 3374 * @param string $path Optional path relative to the admin URL.3374 * @param string $path Optional. Path relative to the admin URL. Default 'admin'. 3375 3375 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 3376 3376 * 'http' or 'https' can be passed to force those schemes. … … 3386 3386 * @since 3.0.0 3387 3387 * 3388 * @param int 3389 * @param string $path Optional. Path relative to the admin URL. Default empty.3390 * @param string $scheme Optional. The scheme to use. Accepts 'http' or 'https',3391 * to force those schemes. Default 'admin', which obeys3392 * force_ssl_admin() and is_ssl().3388 * @param int|null $blog_id Optional. Site ID. Default null (current site). 3389 * @param string $path Optional. Path relative to the admin URL. Default empty. 3390 * @param string $scheme Optional. The scheme to use. Accepts 'http' or 'https', 3391 * to force those schemes. Default 'admin', which obeys 3392 * force_ssl_admin() and is_ssl(). 3393 3393 * @return string Admin URL link with optional path appended. 3394 3394 */ … … 3417 3417 * @since 2.6.0 3418 3418 * 3419 * @param string $path Optional. Path relative to the includes URL. Default empty.3420 * @param string $scheme Optional. Scheme to give the includes URL context. Accepts3421 * 'http', 'https', or 'relative'. Default null.3419 * @param string $path Optional. Path relative to the includes URL. Default empty. 3420 * @param string|null $scheme Optional. Scheme to give the includes URL context. Accepts 3421 * 'http', 'https', or 'relative'. Default null. 3422 3422 * @return string Includes URL link with optional path appended. 3423 3423 */ … … 3532 3532 * @see set_url_scheme() 3533 3533 * 3534 * @param string $path Optional. Path relative to the site URL. Default empty.3535 * @param string $scheme Optional. Scheme to give the site URL context. Accepts3536 * 'http', 'https', or 'relative'. Default null.3534 * @param string $path Optional. Path relative to the site URL. Default empty. 3535 * @param string|null $scheme Optional. Scheme to give the site URL context. Accepts 3536 * 'http', 'https', or 'relative'. Default null. 3537 3537 * @return string Site URL link with optional path appended. 3538 3538 */ … … 3577 3577 * @since 3.0.0 3578 3578 * 3579 * @param string $path Optional. Path relative to the home URL. Default empty.3580 * @param string $scheme Optional. Scheme to give the home URL context. Accepts3581 * 'http', 'https', or 'relative'. Default null.3579 * @param string $path Optional. Path relative to the home URL. Default empty. 3580 * @param string|null $scheme Optional. Scheme to give the home URL context. Accepts 3581 * 'http', 'https', or 'relative'. Default null. 3582 3582 * @return string Home URL link with optional path appended. 3583 3583 */ -
trunk/src/wp-includes/rest-api.php
r50234 r50340 386 386 * @global WP_Rewrite $wp_rewrite WordPress rewrite component. 387 387 * 388 * @param int 389 * @param string $path Optional. REST route. Default '/'.390 * @param string $scheme Optional. Sanitization scheme. Default 'rest'.388 * @param int|null $blog_id Optional. Blog ID. Default of null returns URL for current blog. 389 * @param string $path Optional. REST route. Default '/'. 390 * @param string $scheme Optional. Sanitization scheme. Default 'rest'. 391 391 * @return string Full URL to the endpoint. 392 392 */ … … 442 442 * @since 4.4.0 443 443 * 444 * @param string $url REST URL.445 * @param string $path REST route.446 * @param int 447 * @param string $scheme Sanitization scheme.444 * @param string $url REST URL. 445 * @param string $path REST route. 446 * @param int|null $blog_id Blog ID. 447 * @param string $scheme Sanitization scheme. 448 448 */ 449 449 return apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );
Note: See TracChangeset
for help on using the changeset viewer.