[theme-reviewers] How the files included in the theme functions.php file are loaded?

Otto otto at ottodestruct.com
Sun Feb 27 20:03:18 UTC 2011


On Sat, Feb 26, 2011 at 11:43 PM, Satish Gandham <satish.iitg at gmail.com> wrote:
> Considering, admin scripts are required only for less than !% of the time.
>
> Do you think I should use this conditional class
>
> if (is_admin()) {
> // wp-admin only loaded code.
> }

I would not bother with it. To each his own, but this sort of needless
"optimization" usually ends up hurting more than it helps.

-Otto


More information about the theme-reviewers mailing list