|
@@ 237-251 (lines=15) @@
|
| 234 |
|
// changing it to the non-hierarchal form used by |
| 235 |
|
// the other location fields. |
| 236 |
|
|
| 237 |
|
if ( isset( $data['xmp-special']['LocationShown'][0] ) |
| 238 |
|
&& is_array( $data['xmp-special']['LocationShown'][0] ) |
| 239 |
|
) { |
| 240 |
|
// the is_array is just paranoia. It should always |
| 241 |
|
// be an array. |
| 242 |
|
foreach ( $data['xmp-special']['LocationShown'] as $loc ) { |
| 243 |
|
if ( !is_array( $loc ) ) { |
| 244 |
|
// To avoid copying over the _type meta-fields. |
| 245 |
|
continue; |
| 246 |
|
} |
| 247 |
|
foreach ( $loc as $field => $val ) { |
| 248 |
|
$data['xmp-general'][$field . 'Dest'][] = $val; |
| 249 |
|
} |
| 250 |
|
} |
| 251 |
|
} |
| 252 |
|
if ( isset( $data['xmp-special']['LocationCreated'][0] ) |
| 253 |
|
&& is_array( $data['xmp-special']['LocationCreated'][0] ) |
| 254 |
|
) { |
|
@@ 252-266 (lines=15) @@
|
| 249 |
|
} |
| 250 |
|
} |
| 251 |
|
} |
| 252 |
|
if ( isset( $data['xmp-special']['LocationCreated'][0] ) |
| 253 |
|
&& is_array( $data['xmp-special']['LocationCreated'][0] ) |
| 254 |
|
) { |
| 255 |
|
// the is_array is just paranoia. It should always |
| 256 |
|
// be an array. |
| 257 |
|
foreach ( $data['xmp-special']['LocationCreated'] as $loc ) { |
| 258 |
|
if ( !is_array( $loc ) ) { |
| 259 |
|
// To avoid copying over the _type meta-fields. |
| 260 |
|
continue; |
| 261 |
|
} |
| 262 |
|
foreach ( $loc as $field => $val ) { |
| 263 |
|
$data['xmp-general'][$field . 'Created'][] = $val; |
| 264 |
|
} |
| 265 |
|
} |
| 266 |
|
} |
| 267 |
|
|
| 268 |
|
// We don't want to return the special values, since they're |
| 269 |
|
// special and not info to be stored about the file. |