Changeset 46169
- Timestamp:
- 09/18/2019 10:29:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/scripts.php
r46167 r46169 681 681 682 682 wp_default_scripts( $wp_scripts ); 683 wp_default_packages( $wp_scripts ); 683 684 684 685 $wp_scripts->base_url = ''; … … 706 707 707 708 wp_default_scripts( $wp_scripts ); 709 wp_default_packages( $wp_scripts ); 708 710 709 711 $wp_scripts->base_url = ''; … … 740 742 $wp_scripts->do_concat = true; 741 743 742 $expected_tail = "<script type='text/javascript' src='/customize-dependency.js'></script>\n";744 $expected_tail = "<script type='text/javascript' src='/customize-dependency.js'></script>\n"; 743 745 $expected_tail .= "<script type='text/javascript'>\n"; 744 746 $expected_tail .= "tryCustomizeDependency()\n"; … … 749 751 wp_add_inline_script( $handle, 'tryCustomizeDependency()' ); 750 752 751 // Open a buffer to get the output of `wp_print_scripts`.752 ob_start();753 753 wp_print_scripts(); 754 $print_scripts = ob_get_clean();754 $print_scripts = get_echo( '_print_scripts' ); 755 755 756 756 $tail = substr( $print_scripts, strrpos( $print_scripts, "<script type='text/javascript' src='/customize-dependency.js'>" ) );
Note: See TracChangeset
for help on using the changeset viewer.