WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#8812 closed defect (bug) (fixed)

javascript error in thickbox viewing updatable plugins (TB_WIDTH is undefined)

Reported by: tsimmons Owned by: tsimmons
Milestone: 2.7.1 Priority: normal
Severity: normal Version: 2.7
Component: General Keywords: thickbox, TB_WIDTH, javascript, error
Focuses: Cc:

Description

When you view the plugins settings page in wp-admin and one of your plugins has an available update, if you click the link to view the plugin update details (which should display in a thickbox) you get a javascript error in IE7:

TB_WIDTH is undefined

on line 284 of /wp-includes/js/thickbox/thickbox.js in the function tb_position()

function tb_position() {
>>> jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
	if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
		jQuery("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
	}
}

Change History (3)

comment:1 tsimmons5 years ago

  • Owner changed from anonymous to tsimmons
  • Status changed from new to assigned

comment:2 azaozz5 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [10327]) Fix non-critical js error when loading Thickbox on the plugins page, fixes #8812 for trunk

comment:3 azaozz5 years ago

(In [10328]) Fix non-critical js error when loading Thickbox on the plugins page, fixes #8812 for 2.7

Note: See TracTickets for help on using tickets.