Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#10283 closed defect (bug) (fixed)

Incorrect check in wp_style_is()

Reported by: denis-de-bernardy's profile Denis-de-Bernardy Owned by: azaozz's profile azaozz
Milestone: 2.8.1 Priority: normal
Severity: major Version: 2.8
Component: General Keywords: has-patch dev-feedback
Focuses: Cc:

Description

As reported in #10264. Shouldn't this be:

	if ( !is_a($wp_styles, 'WP_Styles') )
		$wp_styles = new WP_Styles();

Attachments (1)

10283.diff (482 bytes) - added by Denis-de-Bernardy 15 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Denis-de-Bernardy
15 years ago

  • Keywords has-patch dev-feedback added
  • Owner set to azaozz
  • Severity changed from normal to major
  • Status changed from new to assigned

untested patch, but presumably the correct behavior.

#2 @azaozz
15 years ago

Yes, looks like a typo but since that function is not used anywhere else, it took long time to find.

#3 @azaozz
15 years ago

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

(In [11655]) Fix typo in wp_style_is(), props Denis-de-Bernardy, fixes #10283 for 2.8

#4 @azaozz
15 years ago

(In [11656]) Fix typo in wp_style_is(), props Denis-de-Bernardy, fixes #10283 for trunk

Note: See TracTickets for help on using tickets.