json-endpoints/class.wpcom-json-api-update-media-v1-1-endpoint.php 1 location
|
@@ 96-99 (lines=4) @@
|
93 |
|
$insert['post_parent'] = $input['parent_id']; |
94 |
|
} |
95 |
|
|
96 |
|
if ( isset( $input['alt'] ) ) { |
97 |
|
$alt = wp_strip_all_tags( $input['alt'], true ); |
98 |
|
update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); |
99 |
|
} |
100 |
|
|
101 |
|
// audio only artist/album info |
102 |
|
if ( 0 === strpos( $item->mime_type, 'audio/' ) ) { |
class.json-api-endpoints.php 1 location
|
@@ 1897-1900 (lines=4) @@
|
1894 |
|
|
1895 |
|
// Attributes: Alt |
1896 |
|
|
1897 |
|
if ( isset( $attrs['alt'] ) ) { |
1898 |
|
$alt = wp_strip_all_tags( $attrs['alt'], true ); |
1899 |
|
update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); |
1900 |
|
} |
1901 |
|
|
1902 |
|
// Attributes: Artist, Album |
1903 |
|
|