[wp-hackers] WordPress 3 - comment_form hooks

Otto otto at ottodestruct.com
Fri May 28 13:10:59 UTC 2010


I don't think it's a good idea to cater to people not upgrading. If
they can't upgrade, then they need to solve their issues there and
then upgrade first.

If a theme wants to be backwards compatible, it can do so. It doesn't
need a compatibility plugin to do it.

-Otto



On Fri, May 28, 2010 at 7:45 AM, Stephen Rider
<wp-hackers at striderweb.com> wrote:
> 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?
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list