[wp-trac] [WordPress Trac] #40292: Use echo file_get_contents() instead of require_once() to pull in SVG file contents in Twenty Seventeen

WordPress Trac noreply at wordpress.org
Wed Mar 29 04:41:24 UTC 2017


#40292: Use echo file_get_contents() instead of require_once() to pull in SVG file
contents in Twenty Seventeen
---------------------------+------------------------------
 Reporter:  kellenmace     |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  4.7.3
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by kellenmace):

 @dd32 - Thanks for the recommendation to use readfile() to avoid reading
 the file into memory, then echoing it. I have uploaded icon-
 functions2.diff​ that uses readfile() instead.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40292#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list