WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #23931, comment 2


Ignore:
Timestamp:
07/29/2013 12:51:56 AM (6 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23931, comment 2

    v1 v2  
    11By refactoring the way that the commentdata is prepared for insertion into the DB, it now merges the passed-in data on top of a defaults array that includes a comment_post_ID, so there will be no undefined index.
    22
    3 Patch also includes a `wp_insert_comment_data ` filter before insert to accompany the `wp_insert_comment` action which happens after insert.
     3Patch also includes a `wp_insert_comment_data` filter before insert to accompany the `wp_insert_comment` action which happens after insert.
    44
    55See first attached patch, or see from branch on GitHub: https://github.com/x-team/WordPress/compare/87f9d11...7588a21