I have written a function to register a script in the admin interface.
function custom_admin_js() {
$url = get_bloginfo('template_directory') . '/admin/admin.js';
echo '<script type="text/javascript" src="'. $url . '"></script>';
}
add_action('admin_footer', 'custom_admin_js');
For some - for me unknown reason - this creates additional quotes surrounding the script.
"<script type="text/javascript" src="http://test121.uphero.com/wp-content/themes/news/admin/admin.js"></script>"
How do I remove the surrounding quotes?