[wp-trac] [WordPress Trac] #18744: Check if web hosting allows fopen

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 22 08:03:48 UTC 2011


#18744: Check if web hosting allows fopen
-------------------------+-----------------------------
 Reporter:  denzel_chia  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I had encounter error on many web hosting when using the get_theme_data()
 function which uses get_file_data()in functions.php in wp-includes folder.

 Many web hosting has disabled allow_url_fopen,
 was thinking if it is possible to add some checks to get_file_data() to
 prevent fopen errors in this situation, by returning empty array if
 allow_url_fopen is disabled.

 Thanks!

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


More information about the wp-trac mailing list