[wp-trac] [WordPress Trac] #22069: unify function naming convention get_ vs. the_
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 1 10:24:15 UTC 2012
#22069: unify function naming convention get_ vs. the_
-----------------------------+-------------------------
Reporter: thomask | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: 3.4.2 | Severity: normal
Keywords: |
-----------------------------+-------------------------
even after about 400 custom wordpress instalation i always got problem
remembering the proper name of many functions, if they are returning the
content or echoing it.
Most of the functions got get_something() and the_something() but some
functions got get_the_something() (e.g. get_the_post_thumbnail) and some
got the_something(echo=false) or something(echo=true) etc.
It would be nice if we would consolidate the naming convention (IMO get_
and the_ would be the best) and make current functions obsolete.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22069>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list