WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#20539 closed defect (bug) (fixed)

Missing editor_template_src.js when setting SCRIPT_DEBUG to true

Reported by: ilovecolors Owned by: ryan
Milestone: 3.4 Priority: low
Severity: normal Version: 3.4
Component: TinyMCE Keywords: has-patch commit
Focuses: Cc:

Description

Using WP 3.4 beta 3 multisite configuration based on directories.

In wp-config.php, set

define('SCRIPT_DEBUG', true);

Create/edit a post/page.

Console throws

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/wordpress/night/wp-includes/js/tinymce/themes/advanced/editor_template_src.js?ver=349-20521
Failed to load: http://localhost/wordpress/night/wp-includes/js/tinymce/themes/advanced/editor_template_src.js

As a result, TinyMCE is not initialized.

Attachments (1)

20539.patch (506 bytes) - added by Jayjdk 2 years ago.
Remove editor_template_src.js from the $_old_files array

Download all attachments as: .zip

Change History (8)

comment:1 azaozz2 years ago

  • Keywords close added

The file exists in the repo, perhaps check your install and/or refresh it: http://core.trac.wordpress.org/browser/trunk/wp-includes/js/tinymce/themes/advanced

comment:2 SergeyBiryukov2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

The file exists in both wordpress-3.4-beta3.zip and current nightly build as well.

comment:3 SergeyBiryukov2 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:4 SergeyBiryukov2 years ago

  • Resolution set to worksforme
  • Status changed from reopened to closed

Jayjdk2 years ago

Remove editor_template_src.js from the $_old_files array

comment:5 Jayjdk2 years ago

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I have the same problem as ilovecolors. The editor_template_src.js file gets deleted every time I update WordPress.

I looked in the source code and the file is listed in the $_old_files array in wp-admin/includes/update-core.php

I've attached a patch.

comment:6 nacin2 years ago

  • Keywords has-patch commit added; close removed
  • Milestone set to 3.4
  • Priority changed from normal to low

comment:7 ryan2 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from reopened to closed

In [20728]:

Remove editor_template_src.js from old files list. It should not be deleted. Props Jayjdk. fixes #20539

Note: See TracTickets for help on using tickets.