[wp-hackers] WordPress 3 - comment_form hooks
Stephen Rider
wp-hackers at striderweb.com
Fri May 28 12:45:39 UTC 2010
For those who for some reason can't/won't upgrade to WP 3.0, it might be useful for someone to make a quick "3.0 theme compatibility" plugin that basically does this:
if ( ! function_exists('comment_form') ) {
function comment_form() {
...
}
}
...for each of the new WP 3.0 theme functions.
You could also do this if making a 3.0 theme that you want to make backwards compatible.
Stephen
On May 23, 2010, at 4:15 PM, Andrew Nacin wrote:
> If you want to know whether
> the new comment_form exists, try checking if comment_form exists.
>
> On Sun, May 23, 2010 at 4:43 PM, Jeff Rose <mirepup at gmail.com> wrote:
>
>> Just curious if someone can suggest the proper way of supporting the
>> upcoming new hooks to comment_form in WordPress 3, while supporting
>> backward
>> compatibility...
>>
>> How could a plugin know if the comment_form action was called and is
>> hookable (ie: add or remove fields), versus the traditional HTML output?
More information about the wp-hackers
mailing list