I am looking through the Wordpress plugin code and found the following:
eval( '?>' . $foo . '<?php ' );
I am curious if there is any particular situation that I do not suspect is that this will be the correct way to output the variable $foo. Is this just a case where the plugin author is stupid or is there something I should know? I would just use echo...
UPDATE:
Thanks for the great feedback. I now feel that I do not think about the template. In particular, this happens in the WP Super Cache plugin. I think I will need to take a closer look to see if this needs to be done. I thought Super Cache cached html Wordpress output after PHP has already been processed ...
source
share