Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3959 closed defect (bug) (fixed)

PHP 5 only syntax in general-template.php (changeset 5009)

Reported by: alexkingorg Owned by:
Milestone: 2.1.3 Priority: high
Severity: blocker Version:
Component: General Keywords:
Focuses: Cc:


Looks like this slipped in...

PHP 5 version (current)
$title = strip_tags($wp_query->get_queried_object()->post_title);

PHP 4 compatible version
$temp = $wp_query->get_queried_object();
$title = strip_tags($temp->post_title);

This is a crasher on PHP 4.

Change History (2)

comment:1 @markjaquith9 years ago

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

(In [5027]) unchain. props Alex King. fixes #3959

comment:2 @JeremyVisser9 years ago

Man, I didn't know PHP 4 sucked that much. It's a wonder people still use it.

Note: See TracTickets for help on using tickets.