I crate many wordpress based sites. When i need to include path to the theme folder, i use this code <?php bloginfo('template_url'); ?>
. I`m Theme check plugin. And they say to me
bloginfo('template_url') was found in the file services-section.php. Use echo esc_url( get_template_directory_uri() ) instead.
What the difference between this to methods? Which is better to use?
get_bloginfo
in source and see what it does.