Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#49311 closed defect (bug) (duplicate)

check for php asset files before include

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

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 5 years ago.

Download all attachments as: .zip

Change History (2)

@pbearne
5 years ago

#1 @ocean90
5 years ago

  • Component changed from General to Script Loader
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.