Changeset 64585 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 10/19/2026 10:45:25 PM (19 hours ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/deprecated.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r64489 r64585 6603 6603 6604 6604 /** 6605 * Determines the concatenation settings for scripts and styles. 6606 * 6607 * Scripts and styles are no longer concatenated, so this only gives the `$concatenate_scripts`, 6608 * `$compress_scripts`, and `$compress_css` globals a value of false when they are not already set, 6609 * for code that still reads them. 6610 * 6611 * @since 2.8.0 6612 * @since 7.2.0 The `$compress_scripts` and `$compress_css` globals default to false, as PHP compression 6613 * of scripts and styles was removed in 4.9.9. 6614 * @deprecated 7.2.0 Scripts and styles are no longer concatenated. 6615 * 6616 * @global bool $concatenate_scripts 6617 * @global bool $compress_scripts 6618 * @global bool $compress_css 6619 */ 6620 function script_concat_settings(): void { 6621 global $concatenate_scripts, $compress_scripts, $compress_css; 6622 6623 _deprecated_function( __FUNCTION__, '7.2.0' ); 6624 6625 if ( ! isset( $concatenate_scripts ) ) { 6626 $concatenate_scripts = false; 6627 } 6628 6629 if ( ! isset( $compress_scripts ) ) { 6630 $compress_scripts = false; 6631 } 6632 6633 if ( ! isset( $compress_css ) ) { 6634 $compress_css = false; 6635 } 6636 } 6637 6638 /** 6639 * Prints scripts (internal use only) 6640 * 6641 * @since 2.8.0 6642 * @deprecated 7.2.0 Scripts are no longer concatenated. 6643 * 6644 * @ignore 6645 * 6646 * @global WP_Scripts $wp_scripts 6647 */ 6648 function _print_scripts(): void { 6649 global $wp_scripts; 6650 6651 _deprecated_function( __FUNCTION__, '7.2.0' ); 6652 6653 if ( ! empty( $wp_scripts->print_html ) ) { 6654 echo $wp_scripts->print_html; 6655 } 6656 } 6657 6658 /** 6659 * Prints styles (internal use only). 6660 * 6661 * @ignore 6662 * @since 3.3.0 6663 * @deprecated 7.2.0 Styles are no longer concatenated. 6664 */ 6665 function _print_styles(): void { 6666 _deprecated_function( __FUNCTION__, '7.2.0' ); 6667 6668 $wp_styles = wp_styles(); 6669 6670 if ( ! empty( $wp_styles->print_html ) ) { 6671 echo $wp_styles->print_html; 6672 } 6673 } 6674 6675 /** 6605 6676 * Starts an output buffer that sends the Document-Isolation-Policy header 6606 6677 * and adds crossorigin="anonymous" to cross-origin resources.
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)