Changeset 64489 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 10/18/2026 10:32:14 PM (39 hours ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/deprecated.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r64436 r64489 6601 6601 return wp_truncate_slug( $slug, $length ); 6602 6602 } 6603 6604 /** 6605 * Starts an output buffer that sends the Document-Isolation-Policy header 6606 * and adds crossorigin="anonymous" to cross-origin resources. 6607 * 6608 * The attribute injection was dropped because `isolate-and-credentialless` 6609 * loads cross-origin resources without it, and forcing CORS mode broke 6610 * resources served without `Access-Control-Allow-Origin`. Only the header 6611 * is sent now. 6612 * 6613 * @since 7.1.0 6614 * @deprecated 7.2.0 Use wp_send_document_isolation_policy_header() instead. 6615 * @see wp_send_document_isolation_policy_header() 6616 */ 6617 function wp_start_cross_origin_isolation_output_buffer(): void { 6618 _deprecated_function( __FUNCTION__, '7.2.0', 'wp_send_document_isolation_policy_header()' ); 6619 6620 wp_send_document_isolation_policy_header(); 6621 } 6622 6623 /** 6624 * Adds crossorigin="anonymous" to relevant tags in the given HTML string. 6625 * 6626 * No longer modifies the HTML. Under `Document-Isolation-Policy: 6627 * isolate-and-credentialless` cross-origin resources load without the 6628 * attribute, and adding it broke resources served without CORS headers. 6629 * 6630 * @since 7.1.0 6631 * @deprecated 7.2.0 6632 * 6633 * @param string $html HTML input. 6634 * @return string The unmodified HTML. 6635 */ 6636 function wp_add_crossorigin_attributes( string $html ): string { 6637 _deprecated_function( __FUNCTION__, '7.2.0' ); 6638 6639 return $html; 6640 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)