[wp-hackers] Couple of quick questions: restrict access to plugin
file and loading of l10n
Ozh
ozh at planetozh.com
Fri Oct 19 19:25:39 GMT 2007
I believe this is less critical for themes, as by concept the theme is
always loaded (contrary to plugins which can be loaded or not,
depending on context: admin page, etc...)
Unless of course if for some reason only the admin area of your theme
is translated (say, an admin page within wp-admin). In such a case,
you could conditionally load the translation file within an if
(is_admin()) { } block
On 10/19/07, Benedict Eastaugh <ionfish at gmail.com> wrote:
> Jennifer, how does that advice ("Never call load_plugin_textdomain in
> the main text of your plugin file") apply to themes? I currently just
> have load_theme_textdomain() called in the functions.php file of my
> theme; is this not best practice, and if not, what is? Cheers,
>
> Benedict.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
http://FrenchFragFactory.net ~ Daily Quake News
http://planetOzh.com ~ Blog and WordPress Stuff
More information about the wp-hackers
mailing list