sal/class.json-api-site-jetpack-base.php 1 location
|
@@ 98-102 (lines=5) @@
|
| 95 |
|
|
| 96 |
|
$supported_formats = array(); |
| 97 |
|
|
| 98 |
|
if ( isset( $supported[0] ) ) { |
| 99 |
|
foreach ( $supported[0] as $format ) { |
| 100 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
return $supported_formats; |
| 105 |
|
} |
json-endpoints/class.wpcom-json-api-get-site-endpoint.php 1 location
|
@@ 512-516 (lines=5) @@
|
| 509 |
|
|
| 510 |
|
$supported_formats = $response['formats'] = array(); |
| 511 |
|
|
| 512 |
|
if ( isset( $supported[0] ) ) { |
| 513 |
|
foreach ( $supported[0] as $format ) { |
| 514 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 515 |
|
} |
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
$response['formats'] = (object) $supported_formats; |
| 519 |
|
|