Changeset 59712 for trunk/src/wp-admin/includes/misc.php
- Timestamp:
- 01/27/2025 02:39:18 PM (17 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/misc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r58975 r59712 1417 1417 1418 1418 /** 1419 * Sends a referrer policy header so referrers are not sent externally from administration screens.1420 *1421 * @since 4.9.01422 */1423 function wp_admin_headers() {1424 $policy = 'strict-origin-when-cross-origin';1425 1426 /**1427 * Filters the admin referrer policy header value.1428 *1429 * @since 4.9.01430 * @since 4.9.5 The default value was changed to 'strict-origin-when-cross-origin'.1431 *1432 * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy1433 *1434 * @param string $policy The admin referrer policy header value. Default 'strict-origin-when-cross-origin'.1435 */1436 $policy = apply_filters( 'admin_referrer_policy', $policy );1437 1438 header( sprintf( 'Referrer-Policy: %s', $policy ) );1439 }1440 1441 /**1442 1419 * Outputs JS that reloads the page if the user navigated to it with the Back or Forward button. 1443 1420 *
Note: See TracChangeset
for help on using the changeset viewer.