Changeset 56002 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 06/23/2023 03:43:31 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r55988 r56002 652 652 require ABSPATH . WPINC . '/version.php'; 653 653 654 $develop_src = str_contains( $wp_version, '-src' ); 654 /* 655 * Note: str_contains() is not used here, as this file can be included 656 * via wp-admin/load-scripts.php or wp-admin/load-styles.php, in which case 657 * the polyfills from wp-includes/compat.php are not loaded. 658 */ 659 $develop_src = false !== strpos( $wp_version, '-src' ); 655 660 656 661 if ( ! defined( 'SCRIPT_DEBUG' ) ) { … … 1481 1486 1482 1487 if ( ! defined( 'SCRIPT_DEBUG' ) ) { 1483 define( 'SCRIPT_DEBUG', str_contains( $wp_version, '-src' ) ); 1488 /* 1489 * Note: str_contains() is not used here, as this file can be included 1490 * via wp-admin/load-scripts.php or wp-admin/load-styles.php, in which case 1491 * the polyfills from wp-includes/compat.php are not loaded. 1492 */ 1493 define( 'SCRIPT_DEBUG', false !== strpos( $wp_version, '-src' ) ); 1484 1494 } 1485 1495
Note: See TracChangeset
for help on using the changeset viewer.