[wp-trac] Re: [WordPress Trac] #3491: new hooks for pingback,
trackback?
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 23 10:58:54 GMT 2006
#3491: new hooks for pingback, trackback?
-------------------------+--------------------------------------------------
Reporter: monkinetic | Owner: markjaquith
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.2
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Changes (by markjaquith):
* status: new => assigned
* owner: anonymous => markjaquith
Comment:
The trackback_extend_comment.patch isn't needed... you can access the same
data in the preprocess_comment hook. The filter is run on the first line
of wp_new_comment() and $_POST is a superglobal, so you always have access
to it.
The pingback excerpt generating code is flawed, which looking at your
pingback patch brought attention to. See #3495 So that code will likely
be changing... I'll revisit this once that's taken care of. The best way
to handle this will likely be to stick that extra data you need into the
commentdata array. That way no new filters are needed at all (again,
you'd just use preprocess_comment).
--
Ticket URL: <http://trac.wordpress.org/ticket/3491#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list