[wp-trac] [WordPress Trac] #3231: language_attributes() undefined in 5 minute install

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 11 14:16:07 GMT 2006


#3231: language_attributes() undefined in 5 minute install
-----------------------------+----------------------------------------------
 Reporter:  alanjcastonguay  |       Owner:  anonymous
     Type:  defect           |      Status:  new      
 Priority:  normal           |   Milestone:           
Component:  General          |     Version:  2.1      
 Severity:  normal           |    Keywords:           
-----------------------------+----------------------------------------------
 In a freshly emerged copy of wp2.1, there's no wp-config.php file.
 Traditionally, when a user visits the blog in this state, the 5 minute
 installer takes over, linking the user to /wordpress/wp-admin/setup-
 config.php.

 * As of [4307], this uses wp_die()[[BR]]
 * As of [4259], wp_die() uses language_attributes() in the <html>
 tag[[BR]]
 * language_attributes() is in source:/trunk/wp-includes/general-
 template.php at 4376#L876 [[BR]]
 * general-template.php is require_once()'d by source:/trunk/wp-
 settings.php at 4376#L147 [[BR]]
 * wp-settings.php is require_once()'d by wp-config.php

 If wp-config.php does not exist, wp_die() cannot output
 language_attributes, and throws a PHP Fatal error instead of displaying
 the useful error message. Depending on PHP config, the user is left with a
 blank screen, or the error:

 PHP Fatal error:  Call to undefined function language_attributes() in
 /Users/alan/Sites/wp21/wp-includes/functions.php on line 1112

 I suggest that wp_die() failures to this degree don't bother outputting
 language information, and just continue on to dumping the error message
 and die().

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


More information about the wp-trac mailing list