WordPress.org

Make WordPress Core

Ticket #43285: 43285-filter-desc.patch

File 43285-filter-desc.patch, 586 bytes (added by aranwer104, 22 months ago)

Updated default value in filter doc block description.

  • misc.php

     
    11461146 * @since 4.9.0
    11471147 */
    11481148function wp_admin_headers() {
    1149         $policy = 'same-origin';
     1149        $policy = 'strict-origin-when-cross-origin';
    11501150
    11511151        /**
    1152          * Filters the admin referrer policy header value. Default 'same-origin'.
     1152         * Filters the admin referrer policy header value. Default 'strict-origin-when-cross-origin'.
    11531153         *
    11541154         * @since 4.9.0
    11551155         * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy