modules/infinite-scroll/infinity.php 1 location
|
@@ 1253-1254 (lines=2) @@
|
1250 |
|
} |
1251 |
|
|
1252 |
|
// Parse requested media context for stylesheet |
1253 |
|
if ( isset( $wp_styles->registered[ $handle ]->args ) ) |
1254 |
|
$style_data['media'] = esc_attr( $wp_styles->registered[ $handle ]->args ); |
1255 |
|
|
1256 |
|
// Add stylesheet to data that will be returned to IS JS |
1257 |
|
array_push( $results['styles'], $style_data ); |
json-endpoints/class.wpcom-json-api-render-endpoint.php 1 location
|
@@ 99-101 (lines=3) @@
|
96 |
|
|
97 |
|
// is there a special media (print, screen, etc) for this? if not, default to 'all' |
98 |
|
$media = 'all'; |
99 |
|
if ( isset( $wp_styles->registered[ $handle ]->args ) ) { |
100 |
|
$media = esc_attr( $wp_styles->registered[ $handle ]->args ); |
101 |
|
} |
102 |
|
|
103 |
|
// add to an array so we can return all this info |
104 |
|
$styles[ $handle ] = array ( |