sal/class.json-api-site-jetpack-base.php 1 location
|
@@ 114-118 (lines=5) @@
|
| 111 |
|
|
| 112 |
|
$supported_formats = array(); |
| 113 |
|
|
| 114 |
|
if ( isset( $supported[0] ) ) { |
| 115 |
|
foreach ( $supported[0] as $format ) { |
| 116 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 117 |
|
} |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
return $supported_formats; |
| 121 |
|
} |
json-endpoints/class.wpcom-json-api-get-site-endpoint.php 1 location
|
@@ 744-748 (lines=5) @@
|
| 741 |
|
|
| 742 |
|
$supported_formats = $response['formats'] = array(); |
| 743 |
|
|
| 744 |
|
if ( isset( $supported[0] ) ) { |
| 745 |
|
foreach ( $supported[0] as $format ) { |
| 746 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 747 |
|
} |
| 748 |
|
} |
| 749 |
|
|
| 750 |
|
$response['formats'] = (object) $supported_formats; |
| 751 |
|
|