Ticket #52813: 52813.diff
| File 52813.diff, 3.7 KB (added by , 5 years ago) |
|---|
-
src/wp-includes/link-template.php
3429 3429 * Filters the admin area URL. 3430 3430 * 3431 3431 * @since 2.8.0 3432 * @since x.x.x The `$scheme` parameter was added. 3432 3433 * 3433 * @param string $url The complete admin area URL including scheme and path. 3434 * @param string $path Path relative to the admin area URL. Blank string if no path is specified. 3435 * @param int|null $blog_id Site ID, or null for the current site. 3434 * @param string $url The complete admin area URL including scheme and path. 3435 * @param string $path Path relative to the admin area URL. Blank string if no path is specified. 3436 * @param int|null $blog_id Site ID, or null for the current site. 3437 * @param string|null $scheme The scheme to use. Accepts 'http', 'https', 3438 * 'admin', or null. 3436 3439 */ 3437 return apply_filters( 'admin_url', $url, $path, $blog_id );3440 return apply_filters( 'admin_url', $url, $path, $blog_id, $scheme ); 3438 3441 } 3439 3442 3440 3443 /** … … 3458 3461 * Filters the URL to the includes directory. 3459 3462 * 3460 3463 * @since 2.8.0 3464 * @since x.x.x The `$scheme` parameter was added. 3461 3465 * 3462 * @param string $url The complete URL to the includes directory including scheme and path. 3463 * @param string $path Path relative to the URL to the wp-includes directory. Blank string 3464 * if no path is specified. 3466 * @param string $url The complete URL to the includes directory including scheme and path. 3467 * @param string $path Path relative to the URL to the wp-includes directory. Blank string 3468 * if no path is specified. 3469 * @param string|null $scheme Scheme to give the includes URL context. Accepts 3470 * 'http', 'https', 'relative', or null. 3465 3471 */ 3466 return apply_filters( 'includes_url', $url, $path );3472 return apply_filters( 'includes_url', $url, $path, $scheme ); 3467 3473 } 3468 3474 3469 3475 /** … … 3668 3674 * Filters the network admin URL. 3669 3675 * 3670 3676 * @since 3.0.0 3677 * @since x.x.x The `$scheme` parameter was added. 3671 3678 * 3672 * @param string $url The complete network admin URL including scheme and path. 3673 * @param string $path Path relative to the network admin URL. Blank string if 3674 * no path is specified. 3679 * @param string $url The complete network admin URL including scheme and path. 3680 * @param string $path Path relative to the network admin URL. Blank string if 3681 * no path is specified. 3682 * @param string|null $scheme The scheme to use. Accepts 'http', 'https', 3683 * 'admin', or null. 3675 3684 */ 3676 return apply_filters( 'network_admin_url', $url, $path );3685 return apply_filters( 'network_admin_url', $url, $path, $scheme ); 3677 3686 } 3678 3687 3679 3688 /** … … 3697 3706 * Filters the user admin URL for the current user. 3698 3707 * 3699 3708 * @since 3.1.0 3709 * @since x.x.x The `$scheme` parameter was added. 3700 3710 * 3701 * @param string $url The complete URL including scheme and path. 3702 * @param string $path Path relative to the URL. Blank string if 3703 * no path is specified. 3711 * @param string $url The complete URL including scheme and path. 3712 * @param string $path Path relative to the URL. Blank string if 3713 * no path is specified. 3714 * @param string|null $scheme The scheme to use. Accepts 'http', 'https', 3715 * 'admin', or null. 3704 3716 */ 3705 return apply_filters( 'user_admin_url', $url, $path );3717 return apply_filters( 'user_admin_url', $url, $path, $scheme ); 3706 3718 } 3707 3719 3708 3720 /**
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)