Ticket #10283 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 3 years ago

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:

Description

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

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

Attachments

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

Change History

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

untested patch, but presumably the correct behavior.

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

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

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

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

Note: See TracTickets for help on using tickets.