Ticket #6654: 6654.3.diff
File 6654.3.diff, 543 bytes (added by , 2 years ago) |
---|
-
functions.php
1035 1035 * This can't be done through a filter in the themes functions.php, as it appears that's not loaded for the Rest API. 1036 1036 * 1037 1037 * @see https://meta.trac.wordpress.org/ticket/4667 1038 * @param int $id 1039 * @param WP_Post $post 1040 * @param string $post_before 1038 1041 */ 1039 1042 function wptv_update_attachment_titles( $id, $post, $post_before ) { 1040 1043 if ( 'post' !== $post->post_type ) {