Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3959 closed defect (bug) (fixed)

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

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

Description

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)

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

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

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.