[wp-trac] [WordPress Trac] #42273: Template_url calls index pge

WordPress Trac noreply at wordpress.org
Thu Oct 19 10:45:45 UTC 2017


#42273: Template_url calls index pge
-------------------------------+------------------------------
 Reporter:  wassimo            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Themes             |     Version:  4.8.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  template
-------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:4 wassimo]:
 > Tou can create empty index.php with function like mkdir
 > Then get_bloginfo with template _url
 > U can see it will calls index.php and create a folder

 WordPress calls `index.php` as a part of the
 [https://developer.wordpress.org/themes/basics/template-hierarchy/
 template hierarchy]. If I put a `mkdir()` call there, it would always be
 executed, with or without `get_bloginfo( 'template_url' )`. I don't see a
 bug here.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42273#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list