json-endpoints/class.wpcom-json-api-get-site-endpoint.php 1 location
|
@@ 676-680 (lines=5) @@
|
| 673 |
|
|
| 674 |
|
$supported_formats = $response['formats'] = array(); |
| 675 |
|
|
| 676 |
|
if ( isset( $supported[0] ) ) { |
| 677 |
|
foreach ( $supported[0] as $format ) { |
| 678 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 679 |
|
} |
| 680 |
|
} |
| 681 |
|
|
| 682 |
|
$response['formats'] = (object) $supported_formats; |
| 683 |
|
|
sal/class.json-api-site-jetpack-base.php 1 location
|
@@ 122-126 (lines=5) @@
|
| 119 |
|
|
| 120 |
|
$supported_formats = array(); |
| 121 |
|
|
| 122 |
|
if ( isset( $supported[0] ) ) { |
| 123 |
|
foreach ( $supported[0] as $format ) { |
| 124 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 125 |
|
} |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
return $supported_formats; |
| 129 |
|
} |