[wp-trac] [WordPress Trac] #34809: how to do file_get_contents in WordPress

WordPress Trac noreply at wordpress.org
Sat Dec 5 11:18:50 UTC 2015


#34809: how to do file_get_contents in WordPress
----------------------------+----------------------
 Reporter:  rinkuyadav999   |       Owner:
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Filesystem API  |     Version:
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:
----------------------------+----------------------

Comment (by g48r137):

 Replying to [comment:1 dd32]:
 > The Theme Check plugin / warning is incorrect in this case.
 >
 > However, this isn't the correct avenue for support requests, Please use
 the [https://wordpress.org/support/ WordPress Support Forums] or contact
 the Theme Review team directly for theme issues.

 Maybe it would be helpful to throw exception if someone is using wp-
 filesystem outside admin area? It seems like some developers try to avoid
 Theme Checker plugin / warnings by wrong implementation of wp-filesystem
 in frontend for just get_contents. BTW warnings can be easily bypassed by
 something like this: $func = 'file_ge' . 't_contents'; $data =
 $func($file);

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


More information about the wp-trac mailing list