[wp-trac] [WordPress Trac] #47350: Add method to get JSON from a file without using file_get_contents()

WordPress Trac noreply at wordpress.org
Wed May 22 18:43:50 UTC 2019


#47350: Add method to get JSON from a file without using file_get_contents()
---------------------------+------------------------------
 Reporter:  aristath       |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+------------------------------
Changes (by youknowriad):

 * component:  Editor => Script Loader


Comment:

 I wonder if this should just be the default behavior of
 `wp_register_script` if you omit the "deps" argument. It could go check if
 there's a dependency file with the same name as the script and load it.

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


More information about the wp-trac mailing list