[wp-hackers] fixes for old versions
Eric Marden
wp at xentek.net
Sun Jan 10 04:27:11 UTC 2010
On Jan 9, 2010, at 4:58 AM, TobiasBg wrote:
> Hi,
>
>>> * Is it hooking cleanly into WordPress?
>>
>> Just curious if you could give some examples and counter-examples
>> of that criteria?
>
> I would think, things like:
> hooking into the correct action hooks to insert CSS and JS (on both
> backend and frontend),
> (counter-example: NOT on all admin pages),
> loading a textdomain only when necessary,
> maybe separate frontend and backend code,
> use APIs where available and possible (i.e. especially for DB
> interaction),
> maybe use a class to remedy function naming conflicts,
> ...
Great examples Tobias.
In order to judge this, I imagine you would have to know the WordPress
way of doing things. For me, even the general layout and formatting of
the code is going to say a lot about the person who wrote it, their
experience level, and whether or not the code smells ( http://en.wikipedia.org/wiki/Code_smell
).
- Eric Marden
__________________________________
http://xentek.net/code/wordpress/
tw: @xentek
More information about the wp-hackers
mailing list