[wp-trac] Re: [WordPress Trac] #7738: undefined functions on trunk
install attempt
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 13 12:13:52 GMT 2008
#7738: undefined functions on trunk install attempt
----------------------------+-----------------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: Administration | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------------------------------
Changes (by DD32):
* summary: Fatal error: Call to undefined function is_admin() upon
install => undefined functions on trunk install
attempt
Comment:
{{{__()}}} is also used within file.php in the global scope, Loading all
the code for the install might be a better option? allthough could be over
the top or may cause some extra warning-level notices due to undefined
variables/constants.. I've not tested that.
The change for this would be :
{{{
Index: wp-admin/includes/upgrade.php
===================================================================
--- wp-admin/includes/upgrade.php (revision 8875)
+++ wp-admin/includes/upgrade.php (working copy)
@@ -2,6 +2,7 @@
if ( file_exists(WP_CONTENT_DIR . '/install.php') )
require (WP_CONTENT_DIR . '/install.php');
+require_once(ABSPATH . 'wp-settings.php');
require_once(ABSPATH . 'wp-admin/includes/admin.php');
require_once(ABSPATH . 'wp-admin/includes/schema.php');
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/7738#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list