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 | if ( strlen( $concat ) <= 512 ) { |
| 703 | $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . $concat . '&ver=' . $wp_scripts->default_version; |
| 704 | echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n"; |
| 705 | } else { |
| 706 | $scripts = explode( ',', $concat ); |
| 707 | $concat = ''; |
| 708 | foreach ( $scripts as $script ) { |
| 709 | if ( strlen( $concat ) + strlen( $script ) > 513 ) { |
| 710 | $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim( $concat, ',' ) . '&ver=' . $wp_scripts->default_version; |
| 711 | echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n"; |
| 712 | $concat = ''; |
| 713 | } |
| 714 | $concat .= ',' . $script; |
| 715 | } |
| 716 | if ( $concat ) { |
| 717 | $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim( $concat, ',' ) . '&ver=' . $wp_scripts->default_version; |
| 718 | echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n"; |
| 719 | } |
| 720 | } |