[wp-trac] [WordPress Trac] #11839: Two notices in post_custom()
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 9 10:47:27 UTC 2010
#11839: Two notices in post_custom()
--------------------------+-------------------------------------------------
Reporter: sirzooro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Template | Version: 2.9.1
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
When someone will use non-existing index, PHP will display following
notices:[[BR]]
Notice: Undefined index: views in C:\wordpress.local\wp-includes\post-
template.php on line 649[[BR]]
Notice: Undefined index: views in C:\wordpress.local\wp-includes\post-
template.php on line 652
Attached patch fixes this - when someone will use non-exiting index,
`post_custom()` will return empty string.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11839>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list