Changeset 36341 for trunk/src/wp-admin/load-styles.php
- Timestamp:
- 01/18/2016 09:56:06 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/load-styles.php
r36312 r36341 16 16 require( ABSPATH . WPINC . '/version.php' ); 17 17 18 $load = preg_replace( '/[^a-z0-9,_-]+/i', '', $_GET['load'] ); 18 $load = $_GET['load']; 19 if ( is_array( $load ) ) { 20 $load = implode( '', $load ); 21 } 22 $load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load ); 19 23 $load = array_unique( explode( ',', $load ) ); 20 24 … … 45 49 46 50 $style = $wp_styles->registered[$handle]; 51 52 if ( empty( $style->src ) ) { 53 continue; 54 } 55 47 56 $path = ABSPATH . $style->src; 48 57
Note: See TracChangeset
for help on using the changeset viewer.