[wp-trac] Re: [WordPress Trac] #10131: Notice: Undefined variable:
time_since
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 13 17:06:04 GMT 2009
#10131: Notice: Undefined variable: time_since
-------------------------------+--------------------------------------------
Reporter: sirzooro | Type: defect (bug)
Status: new | Priority: normal
Milestone: 2.8.1 | Component: Warnings/Notices
Version: 2.8 | Severity: normal
Keywords: reporter-feedback |
-------------------------------+--------------------------------------------
Changes (by peaceablewhale):
* keywords: => reporter-feedback
Comment:
From single.php:
{{{
/* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/wordpress/time-since/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo
time_since($entry_datetime); echo ' ago'; */
}}}
Since the code is commented out, it doesn't make sense for PHP to generate
a Notice. Would you check your code?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10131#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list