WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#36156 closed defect (bug) (invalid)

redirect.js - Erroneous comma in object

Reported by: phillclark Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4.1
Component: General Keywords:
Focuses: javascript Cc:

Description

Within "redirect.js" there is an erroneous comma within the object on line 17 that causes an error in older IE browsers.

file_frame = wp.media.frames.file_frame = wp.media({
	title: jQuery( this ).data( 'uploader_title' ),
	button: {
		text: jQuery( this ).data( 'uploader_button_text' ),
	},
	multiple: false  
});

It is located at the end of the "text" object key row

Change History (5)

#1 @swissspidy
5 years ago

  • Focuses performance removed
  • Keywords reporter-feedback added

I'm either blind or I can't find this file. Where is it located? Are you sure it's part of WordPress and not a plugin/theme?

#2 @SergeyBiryukov
5 years ago

Hi @phillclark, welcome to Trac!

There's no redirect.js file in WordPress core. The code you've cited is not a part of any existing core file either.

#3 @phillclark
5 years ago

Apologies - yes, found out it was actually a plugin file but located incorrectly..... #mybad

#4 @phillclark
5 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#5 @swissspidy
5 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.