WordPress.org

Make WordPress Core

#21336 closed defect (bug) (invalid)

child theme get_bloginfo('template_url') return wron url

Reported by: eggproject Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.1
Component: General Keywords:
Focuses: Cc:

Description

Hello...
i little speak english... :(

I use wp 3.4.1
i create child theme

/*
Theme Name: Pentaschool theme
Theme URI: http://XXXXXXXXXXXXX.hu/
Description: Child theme for the Twenty Eleven theme
Author: Egg
Template: twentyeleven
Version: 0.1.0
*/

and create code
<script type="text/javascript" src='<?php echo get_bloginfo('template_url'); ?>/acf/jquery.numeric.js'></script>

get_bloginfo('template_url') return twentyeleven url!

Change History (1)

comment:1 kawauso21 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

That's expected behaviour for 'template_url', you want 'stylesheet_directory'

See: http://codex.wordpress.org/Function_Reference/get_bloginfo

Note: See TracTickets for help on using tickets.