json-endpoints/class.wpcom-json-api-render-endpoint.php 1 location
|
@@ 95-97 (lines=3) @@
|
| 92 |
|
|
| 93 |
|
// is there a special media (print, screen, etc) for this? if not, default to 'all' |
| 94 |
|
$media = 'all'; |
| 95 |
|
if ( isset( $wp_styles->registered[ $handle ]->args ) ) { |
| 96 |
|
$media = esc_attr( $wp_styles->registered[ $handle ]->args ); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
// add to an array so we can return all this info |
| 100 |
|
$styles[ $handle ] = array ( |
modules/infinite-scroll/infinity.php 1 location
|
@@ 1162-1163 (lines=2) @@
|
| 1159 |
|
} |
| 1160 |
|
|
| 1161 |
|
// Parse requested media context for stylesheet |
| 1162 |
|
if ( isset( $wp_styles->registered[ $handle ]->args ) ) |
| 1163 |
|
$style_data['media'] = esc_attr( $wp_styles->registered[ $handle ]->args ); |
| 1164 |
|
|
| 1165 |
|
// Add stylesheet to data that will be returned to IS JS |
| 1166 |
|
array_push( $results['styles'], $style_data ); |