Making WordPress.org

Ticket #6654: 6664.diff

File 6664.diff, 543 bytes (added by viralsampat, 2 years ago)

I have checked from my end and found few other files. So, I have added my patch.

  • functions.php

     
    10351035 * This can't be done through a filter in the themes functions.php, as it appears that's not loaded for the Rest API.
    10361036 *
    10371037 * @see https://meta.trac.wordpress.org/ticket/4667
     1038 * @param int $id
     1039 * @param WP_Post $post
     1040 * @param string $post_before
    10381041 */
    10391042function wptv_update_attachment_titles( $id, $post, $post_before ) {
    10401043        if ( 'post' !== $post->post_type ) {