再次感谢scribu,这里是所有感兴趣的人的工作结果(自定义管理员只是我的日期选择器js):
function wpse_9080_admin_head()
{
global $pagenow;
// Example of enqueue only in Profile page
// based on scribu\'s suggestion in the comment bellow
if ( \'profile.php\' == $pagenow )
{
wp_enqueue_style(\'ui-datepicker\', get_bloginfo(\'template_url\') . \'/css/jquery-ui-1.8.9.custom.css\');
wp_deregister_script(\'jquery-ui-core\');
wp_enqueue_script(\'jquery-ui\', get_bloginfo(\'template_url\') . \'/js/jquery-ui-1.8.9.custom.min.js\', array(\'jquery\'));
wp_enqueue_script(\'ui-datepicker\', get_bloginfo(\'template_url\') . \'/js/jquery.ui.datepicker.min.js\');
wp_enqueue_script(\'custom_script\', get_bloginfo(\'template_url\').\'/js/custom-admin.js\', array(\'jquery\'));
}
}
add_action(\'admin_init\', \'wpse_9080_admin_head\');