json-endpoints/class.wpcom-json-api-get-site-endpoint.php 1 location
|
@@ 409-413 (lines=5) @@
|
| 406 |
|
|
| 407 |
|
$supported_formats = $response['formats'] = array(); |
| 408 |
|
|
| 409 |
|
if ( isset( $supported[0] ) ) { |
| 410 |
|
foreach ( $supported[0] as $format ) { |
| 411 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 412 |
|
} |
| 413 |
|
} |
| 414 |
|
|
| 415 |
|
$response['formats'] = (object) $supported_formats; |
| 416 |
|
|
sal/class.json-api-site-jetpack-base.php 1 location
|
@@ 81-85 (lines=5) @@
|
| 78 |
|
|
| 79 |
|
$supported_formats = array(); |
| 80 |
|
|
| 81 |
|
if ( isset( $supported[0] ) ) { |
| 82 |
|
foreach ( $supported[0] as $format ) { |
| 83 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
return $supported_formats; |
| 88 |
|
} |