Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#10283 closed defect (bug) (fixed)

Incorrect check in wp_style_is()

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

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

Download all attachments as: .zip

Change History (5)

#1 @Denis-de-Bernardy
17 years ago

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

untested patch, but presumably the correct behavior.

#2 @azaozz
17 years ago

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

#3 @azaozz
17 years ago

  • Resolution → fixed
  • Status assigned → closed

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

#4 @azaozz
17 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.