[wp-trac] [WordPress Trac] #3959: PHP 5 only syntax in
general-template.php (changeset 5009)
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 12 04:48:13 GMT 2007
#3959: PHP 5 only syntax in general-template.php (changeset 5009)
-------------------------+--------------------------------------------------
Reporter: alexkingorg | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.1.3
Component: General | Version:
Severity: blocker | Keywords:
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/3959>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list