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 aray so we can return all this info |
100 |
|
$styles[ $handle ] = array ( |
modules/infinite-scroll/infinity.php 1 location
|
@@ 1058-1059 (lines=2) @@
|
1055 |
|
} |
1056 |
|
|
1057 |
|
// Parse requested media context for stylesheet |
1058 |
|
if ( isset( $wp_styles->registered[ $handle ]->args ) ) |
1059 |
|
$style_data['media'] = esc_attr( $wp_styles->registered[ $handle ]->args ); |
1060 |
|
|
1061 |
|
// Add stylesheet to data that will be returned to IS JS |
1062 |
|
array_push( $results['styles'], $style_data ); |