[wp-trac] [WordPress Trac] #21971: Checking for Server Protocol causes PHP notices

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 22 22:44:37 UTC 2012


#21971: Checking for Server Protocol causes PHP notices
------------------------------+----------------------
 Reporter:  omarabid          |       Owner:
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:
Component:  Warnings/Notices  |     Version:  3.4.2
 Severity:  minor             |  Resolution:  invalid
 Keywords:                    |
------------------------------+----------------------

Comment (by omarabid):

 I need to load both the Theme and the Queries. I got around it (if anyone
 is looking for a solution) by creating a prepend.php and adding
 auto_prepend_file = "prepend.php" to the PHP.ini. The file obviously sets
 these variables to mimic a web server.

 However, isn't it a best practice to check that variables are defined
 before using them?

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


More information about the wp-trac mailing list