Ticket #45346: 45346.diff
File 45346.diff, 2.2 KB (added by , 5 years ago) |
---|
-
src/wp-admin/load-scripts.php
16 16 17 17 $load = $_GET['load']; 18 18 if ( is_array( $load ) ) { 19 ksort( $load ); 19 20 $load = implode( '', $load ); 20 21 } 21 22 -
src/wp-admin/load-styles.php
20 20 21 21 $load = $_GET['load']; 22 22 if ( is_array( $load ) ) { 23 ksort( $load ); 23 24 $load = implode( '', $load ); 24 25 } 26 25 27 $load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load ); 26 28 $load = array_unique( explode( ',', $load ) ); 27 29 -
src/wp-includes/script-loader.php
2459 2459 } 2460 2460 2461 2461 $concat = str_split( $concat, 128 ); 2462 $concat = 'load%5B%5D=' . implode( '&load%5B%5D=', $concat );2462 $concatenated = ''; 2463 2463 2464 $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&" . $concat . '&ver=' . $wp_scripts->default_version; 2464 foreach ( $concat as $key => $chunk ) { 2465 $concatenated .= "&load%5Bchunk_{$key}%5D={$chunk}"; 2466 } 2467 2468 $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}" . $concatenated . '&ver=' . $wp_scripts->default_version; 2465 2469 echo "<script type='text/javascript' src='" . esc_attr( $src ) . "'></script>\n"; 2466 2470 } 2467 2471 … … 2629 2633 $ver = $wp_styles->default_version; 2630 2634 2631 2635 $concat = str_split( $concat, 128 ); 2632 $concat = 'load%5B%5D=' . implode( '&load%5B%5D=', $concat );2636 $concatenated = ''; 2633 2637 2634 $href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}&" . $concat . '&ver=' . $ver; 2638 foreach ( $concat as $key => $chunk ) { 2639 $concatenated .= "&load%5Bchunk_{$key}%5D={$chunk}"; 2640 } 2641 2642 $href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}" . $concatenated . '&ver=' . $ver; 2635 2643 echo "<link rel='stylesheet' href='" . esc_attr( $href ) . "' type='text/css' media='all' />\n"; 2636 2644 2637 2645 if ( ! empty( $wp_styles->print_code ) ) {