Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#14131 closed defect (bug) (invalid)

wp_enqueue_style > (php) is_a() depracated

Reported by: F J Kaiser Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: General Keywords:
Focuses: Cc:


Found the following problems with wp_enqueue_style for is_a(). I'm running my server on php 5.2.6 and is_a() was depracated exactly from php 5.0 until 5.3. For this versions the instanceof operator should be used (says the notice):

  • wp-includes/functions.wp-scripts.php on line 98
  • wp-includes/general-template.php on line 2104
  • wp-includes/script-loader.php on line 691 and line 582

Change History (1)

#1 @westi
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

We need to use is_a to support PHP4.

Also it is no longer deprecated in PHP 5.3 onwards.

By default WordPress will not show these errors and they can safely be ignored.

Closing as INVALID as we don't consider this to be a bug.

Note: See TracTickets for help on using tickets.