[wp-trac] [WordPress Trac] #49311: check for php asset files before include

WordPress Trac noreply at wordpress.org
Tue Jan 28 12:01:54 UTC 2020


#49311: check for php asset files before include
--------------------------+-----------------------------
 Reporter:  pbearne       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 I am seeing warnings like this

 Warning: include(): Failed opening '/srv/www/wordpress-
 develop/public_html/src/wp-includes/assets/dist/wordcount.asset.php' for
 inclusion (include_path='.:/usr/share/php') in /srv/www/wordpress-
 develop/public_html/src/wp-includes/script-loader.php on line 296

 So I have created a patch to check for the PHP file before including
 I am a bit confused as I have not been able to find a WP install with the
 wp-includes/assets/dist/ folder :-) so not sure why this code is here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49311>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list