[wp-trac] [WordPress Trac] #11066: Can't integrate Wordpress 2.8.5 with CodeIgniter

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 5 22:06:09 UTC 2009


#11066: Can't integrate Wordpress 2.8.5 with CodeIgniter
--------------------------+-------------------------------------------------
 Reporter:  gthorne       |       Owner:  westi            
     Type:  defect (bug)  |      Status:  accepted         
 Priority:  normal        |   Milestone:  Unassigned       
Component:  General       |     Version:  2.8.5            
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by dd32):

 Westi: Try again with the require() inside a function..

 Ie.
 {{{
 function require_wp() {
 require('/Applications/MAMP/htdocs/wp-2.8.4/wp-blog-header.php');
 }
 }}}

 While it definitely would not be a regression, I can see that this could
 cause that error due to wp-settings expecting to have global scope rather
 than local scope.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11066#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list