Add a theme_url() function.
|Reported by:||filipekiss||Owned by:|
Wordpress already has a function for returning the plugin URL based on the file you are calling it http://codex.wordpress.org/Function_Reference/plugins_url, so I was thinking we could really use some theme_url() like function. It would be simpler than calling the option 'template_url' every time we wanted to include a file.
So we would just call <img src="<?php theme_url('images/my-image.jpg');?>" /> instead of <img src="<?php bloginfo('template_url');?>/images/my-image.jpg" />;
This is my first ticket, so I'm not sure if I chose the right component