[wp-polyglots] bbPress Repository for Uighur
Yidayet. Z. Begzad
begzad0826 at yahoo.co.jp
Wed Aug 12 01:54:39 UTC 2009
Hello Milan,
Thank you so much for your kindly advice. That'll have a great help for us.
I will try it soon.
Sincerely
Moorshidi
Milan Dinić <liste at srpski.biz> wrote:
There is also a usage on WordPress blogs, in admin-header.php, from line 41 to 46:
http://svn.automattic.com/wordpress-i18n/ug_CN/tags/2.8.3/dist/wp-admin/admin-header.php
I think that you should use wp_enqueue_script function ( http://codex.wordpress.org/Function_Reference/wp_enqueue_script ) in ug_CN.php instead of hard coding in admin-header.php.
Function should look like
function load_bedit_script () {
wp_enqueue_script('bedit', WP_CONTENT_URL . '/themes/default/bedit.js');
return;
}
add_action('admin_init','load_bedit_script');
This will include bedit.js file on admin pages.
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-polyglots/attachments/20090812/9d66dcf0/attachment.htm>
More information about the wp-polyglots
mailing list