WordPress.org

Make WordPress Core

Ticket #51800: 51800.link-template-null.patch

File 51800.link-template-null.patch, 4.2 KB (added by ocean90, 9 months ago)
  • src/wp-includes/link-template.php

     
    32553255 *
    32563256 * @global string $pagenow
    32573257 *
    3258  * @param int         $blog_id Optional. Site ID. Default null (current site).
     3258 * @param int|null    $blog_id Optional. Site ID. Default null (current site).
    32593259 * @param string      $path    Optional. Path relative to the home URL. Default empty.
    32603260 * @param string|null $scheme  Optional. Scheme to give the home URL context. Accepts
    32613261 *                             'http', 'https', 'relative', 'rest', or null. Default null.
     
    33123312 *
    33133313 * @since 3.0.0
    33143314 *
    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().
    33173317 * @return string Site URL link with optional path appended.
    33183318 */
    33193319function site_url( $path = '', $scheme = null ) {
     
    33303330 *
    33313331 * @since 3.0.0
    33323332 *
    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. Accepts
    3336  *                        'http', 'https', 'login', 'login_post', 'admin', or
    3337  *                        '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.
    33383338 * @return string Site URL link with optional path appended.
    33393339 */
    33403340function get_site_url( $blog_id = null, $path = '', $scheme = null ) {
     
    33713371 *
    33723372 * @since 2.6.0
    33733373 *
    3374  * @param string $path   Optional path relative to the admin URL.
     3374 * @param string $path   Optional. Path relative to the admin URL. Default 'admin'.
    33753375 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl().
    33763376 *                       'http' or 'https' can be passed to force those schemes.
    33773377 * @return string Admin URL link with optional path appended.
     
    33853385 *
    33863386 * @since 3.0.0
    33873387 *
    3388  * @param int    $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().
     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().
    33933393 * @return string Admin URL link with optional path appended.
    33943394 */
    33953395function get_admin_url( $blog_id = null, $path = '', $scheme = 'admin' ) {
     
    34163416 *
    34173417 * @since 2.6.0
    34183418 *
    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. Accepts
    3421  *                       '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.
    34223422 * @return string Includes URL link with optional path appended.
    34233423 */
    34243424function includes_url( $path = '', $scheme = null ) {