Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#49311 closed defect (bug) (duplicate)

check for php asset files before include

Reported by: pbearne Owned by:
Priority: normal Milestone:
Component: Script Loader Version:
Severity: normal Keywords:
Cc: Focuses: javascript

Description

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.

Attachments (1)

49311.patch (1.4 KB ) - added by pbearne 7 years ago.

Download all attachments as: .zip

Change History (2)

@pbearne
7 years ago

#1 @ocean90
7 years ago

  • Component GeneralScript Loader
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
Note: See TracTickets for help on using tickets.