WordPress.org

Make WordPress Core

Ticket #18713: wp_translate_postdata-hook.diff

File wp_translate_postdata-hook.diff, 404 bytes (added by mikeschinkel, 7 years ago)

Adds a wp_translate_postdata hook

  • wp-admin/includes/post.php

     
    126126                $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] );
    127127        }
    128128
    129         return $post_data;
     129        return apply_filters( 'wp_translate_postdata', $post_data, $updpate );
    130130}
    131131
    132132/**