[wp-trac] [WordPress Trac] #19267: Add a theme_url() function.

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 16 21:00:26 UTC 2011


#19267: Add a theme_url() function.
-----------------------------+-----------------------------
 Reporter:  filipekiss       |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Themes           |    Version:
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 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''

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19267>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list