Make WordPress Core

Opened 8 years ago

Last modified 7 years ago

#14720 closed defect (bug)

get_bloginfo code, with get_template_* and get_stylesheet_* — at Initial Version

Reported by: Frumph Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: close
Focuses: Cc:


wp-includes/general-template.php line 436 (WP 3.0.1)

		case 'stylesheet_url':
			$output = get_stylesheet_uri();
		case 'stylesheet_directory':
			$output = get_stylesheet_directory_uri();
		case 'template_directory':
		case 'template_url':
			$output = get_template_directory_uri();

The problem with this is, template_directory and stylesheet_directory should be getting the get_template_directory() and get_stylesheet_directory() and not the URI portion of it, since the difference between the two is major, if someone wants to get the path location on the system rather then the URI

I can recognize _url being used to get the URL of course, but the path isn't being represented, so in favor of of using the get_bloginfo() i've kept using the get_* functions instead.

Change History (0)

Note: See TracTickets for help on using tickets.