[wp-meta] [Making WordPress.org] #5846: WPTV: Subtitle attachment info stays even after subtitle file is removed
Making WordPress.org
noreply at wordpress.org
Fri Aug 20 02:52:39 UTC 2021
#5846: WPTV: Subtitle attachment info stays even after subtitle file is removed
--------------------------+---------------------
Reporter: Nao | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: WordPress.tv | Resolution:
Keywords: |
--------------------------+---------------------
Comment (by dd32):
Just noting that I've cleaned some up manually:
https://wordpress.tv/2021/06/03/shusei-toda-block-editor-02-text-blocks/
{{{
wp> $subtitles = get_post_meta( 108717, '_videopress_subtitles', true );
=> array(3) {
["ja"]=>
array(2) {
["language"]=>
string(2) "ja"
["subtitles_post_id"]=>
int(108792)
}
["en"]=>
array(2) {
["language"]=>
string(2) "en"
["subtitles_post_id"]=>
int(109539)
}
["en-ca"]=>
array(2) {
["language"]=>
string(5) "en-ca"
["subtitles_post_id"]=>
int(109540)
}
}
wp> unset( $subtitles['en-ca'] );
wp> update_post_meta( 108717, '_videopress_subtitles', $subtitles );
=> bool(true)
}}}
https://wordpress.tv/2021/02/06/muhammad-muhsin-introduction-to-wordpress/
{{{
wp> $subtitles = get_post_meta( 107951, '_videopress_subtitles', true );
=> array(1) {
["en"]=>
array(2) {
["language"]=>
string(2) "en"
["subtitles_post_id"]=>
int(107954)
}
}
wp> unset( $subtitles['en'] );
wp> update_post_meta( 107951, '_videopress_subtitles', $subtitles );
=> bool(true)
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5846#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list