[wp-trac] [WordPress Trac] #9421: Globals in footer.php

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 31 15:00:34 GMT 2009


#9421: Globals in footer.php
--------------------------+-------------------------------------------------
 Reporter:  enailor       |       Owner:                                  
     Type:  defect (bug)  |      Status:  new                             
 Priority:  high          |   Milestone:  Unassigned                      
Component:  Themes        |     Version:  2.7                             
 Severity:  major         |    Keywords:  footer.php, variables, functions
--------------------------+-------------------------------------------------
 For some reason, globals and typical WP functions do not seem to be
 working in theme footer.php files.

 Setting a variable to global seems to permit calling that variable
 anywhere with exception of the footer.php file in which the variable is
 lost. This also applies to the ''is_front_page()'' function which does not
 work in the footer. (I have not tested other WP functions to know which
 ones do and do not work in footer)

 In the forums, one suggestion is that global variables need to be
 redeclared as global and they will work. However, I am unaware of any way
 to redeclare the WP functions so that they will also work in the footer.

 Variables and functions should be available in the footer as well.

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


More information about the wp-trac mailing list