[wp-trac] Re: [WordPress Trac] #8779: Standardize get_*, add_*,
delete_*, and update_* function names
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 30 12:58:56 GMT 2009
#8779: Standardize get_*, add_*, delete_*, and update_* function names
-------------------------+--------------------------------------------------
Reporter: filosofo | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version: 2.8
Severity: normal | Keywords: deprecated has-patch functions naming
-------------------------+--------------------------------------------------
Comment(by filosofo):
Replying to [comment:1 Denis-de-Bernardy]:
> -1 on the _user_meta functions. they behave too differently from the
_post_meta functions.
I think perhaps I wasn't very clear. I want to change the names because
of ''syntax'', not ''semantics'': it doesn't matter whether the functions
are exactly parallel in meaning or behavior (Will's patch could go either
way and I'd recommend the same thing).
The point is that something like 95% of !WordPress functions follow the
syntax of separating nouns and verbs with underscores. That overwhelming
majority in practice suggests, to me, a standard.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8779#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list