[wp-trac] [WordPress Trac] #14017: New template "tag": get_custom_field()
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 29 22:20:24 UTC 2010
#14017: New template "tag": get_custom_field()
-------------------------+--------------------------------------------------
Reporter: filosofo | Owner: filosofo
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: Template | Version: 3.0
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Comment(by filosofo):
I don't really care about the name, so please suggest one. However,
they're called "Custom Fields" on the post edit page, so it seems like the
reasonable name to me. The name of the db table the actual data is stored
in is irrelevant to the person using the API, right?
I think changing `get_post_meta` to accept 0 as an argument like that is
going to have serious backwards-compatibility issues, because
`get_post_meta` should fail when given an invalid ID. And then they still
have to add "true" to make sure they get a string.
My general idea is to make the lives of template designers easier.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14017#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list