|
@@ 216-220 (lines=5) @@
|
| 213 |
|
|
| 214 |
|
$supported_formats = array(); |
| 215 |
|
|
| 216 |
|
if ( isset( $supported[0] ) ) { |
| 217 |
|
foreach ( $supported[0] as $format ) { |
| 218 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 219 |
|
} |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
// determine if sharing buttons should be visible by default |
| 223 |
|
$default_sharing_status = false; |
|
@@ 458-462 (lines=5) @@
|
| 455 |
|
|
| 456 |
|
$supported_formats = $response['formats'] = array(); |
| 457 |
|
|
| 458 |
|
if ( isset( $supported[0] ) ) { |
| 459 |
|
foreach ( $supported[0] as $format ) { |
| 460 |
|
$supported_formats[ $format ] = $all_formats[ $format ]; |
| 461 |
|
} |
| 462 |
|
} |
| 463 |
|
|
| 464 |
|
$response['formats'] = (object) $supported_formats; |
| 465 |
|
|