How to get Wordpress TwentyTwelve comments.php to work on another theme?

admin

Administrator
Staff member
Currently, I'm using a Wordpress theme that is built on <a href="https://github.com/drewsymo/Foundation" rel="nofollow">Foundation</a>. However, the theme doesn't have its own
Code:
comment.php
file and it's currently using the soon to be deprecated
Code:
comments.php
from
Code:
wordpress\wp-includes\theme-compat
folder.

So what I did is to copy/paste the latest
Code:
comments.php
file from the TwentyTwelve theme folder into my current theme folder. However, this results in an error:

Code:
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'twentytwelve_comment' not found or invalid function name in C:\xampp\htdocs\wordpress\wp-includes\comment-template.php on line 1334

...since it's not properly wired up. What should I do to get the
Code:
comments.php
to work properly?