json-endpoints/class.wpcom-json-api-update-media-v1-1-endpoint.php 1 location
|
@@ 39-42 (lines=4) @@
|
36 |
|
$insert['post_parent'] = $input['parent_id']; |
37 |
|
} |
38 |
|
|
39 |
|
if ( isset( $input['alt'] ) ) { |
40 |
|
$alt = wp_strip_all_tags( $input['alt'], true ); |
41 |
|
update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); |
42 |
|
} |
43 |
|
|
44 |
|
// audio only artist/album info |
45 |
|
if ( 0 === strpos( $item->mime_type, 'audio/' ) ) { |
class.json-api-endpoints.php 1 location
|
@@ 1700-1703 (lines=4) @@
|
1697 |
|
|
1698 |
|
// Attributes: Alt |
1699 |
|
|
1700 |
|
if ( isset( $attrs['alt'] ) ) { |
1701 |
|
$alt = wp_strip_all_tags( $attrs['alt'], true ); |
1702 |
|
update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); |
1703 |
|
} |
1704 |
|
|
1705 |
|
// Attributes: Artist, Album |
1706 |
|
|