702 | | $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim($wp_scripts->concat, ', ') . '&ver=' . $wp_scripts->default_version; |
703 | | echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n"; |
| 702 | while( strlen( trim( $wp_scripts->concat, ', ' ) ) > 500 ) { |
| 703 | $index = strrpos( $wp_scripts->concat, ',', 500 ); |
| 704 | $segment = substr( $wp_scripts->concat, 0, $index ); |
| 705 | $wp_scripts->concat = substr( $wp_scripts->concat, $index ); |
| 706 | $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim( $segment, ', ' ) . '&ver=' . $wp_scripts->default_version; |
| 707 | echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n"; |
| 708 | } |
| 709 | |
| 710 | $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim( $wp_scripts->concat, ', ' ) . '&ver=' . $wp_scripts->default_version; |
| 711 | echo "<script type='text/javascript' src='" . esc_attr( $src ) . "'></script>\n"; |