json-endpoints/class.wpcom-json-api-get-site-endpoint.php 1 location
|
@@ 575-579 (lines=5) @@
|
| 572 |
|
|
| 573 |
|
$supported_formats = $response['formats'] = array(); |
| 574 |
|
|
| 575 |
|
if ( isset( $supported[0] ) ) { |
| 576 |
|
foreach ( $supported[0] as $format ) { |
| 577 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 578 |
|
} |
| 579 |
|
} |
| 580 |
|
|
| 581 |
|
$response['formats'] = (object) $supported_formats; |
| 582 |
|
|
sal/class.json-api-site-jetpack-base.php 1 location
|
@@ 104-108 (lines=5) @@
|
| 101 |
|
|
| 102 |
|
$supported_formats = array(); |
| 103 |
|
|
| 104 |
|
if ( isset( $supported[0] ) ) { |
| 105 |
|
foreach ( $supported[0] as $format ) { |
| 106 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
return $supported_formats; |
| 111 |
|
} |