projects/plugins/jetpack/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/' ) ) { |
projects/plugins/jetpack/class.json-api-endpoints.php 1 location
|
@@ 1917-1920 (lines=4) @@
|
1914 |
|
|
1915 |
|
// Attributes: Alt |
1916 |
|
|
1917 |
|
if ( isset( $attrs['alt'] ) ) { |
1918 |
|
$alt = wp_strip_all_tags( $attrs['alt'], true ); |
1919 |
|
update_post_meta( $media_id, '_wp_attachment_image_alt', $alt ); |
1920 |
|
} |
1921 |
|
|
1922 |
|
// Attributes: Artist, Album |
1923 |
|
|