Support » Fixing WordPress » JQuery datepicker in custom plugin break other wp stuffs

  • Hi all,
    i’m writing a plugin in which is integrated a JQuery datepicker.
    So i’ve

    function my_init() {
    	$pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/' . dirname(plugin_basename(__FILE__));
    	wp_enqueue_style('jquery-style', '');
    add_action('admin_init', 'my_init');

    The datepicker is working fine in my plugin, but something strange happens to WP core, because with the plugin activated a wrong graphic affect other stuff for example while writing a post, if i click on “insert a link” the popup windows has wrong colors (the same of the style enqueued in my plugin and the “X” for close popup is misaligned.

    Deactivating my plugin, all it’s correct. So something i miss in the code of my plugin. Can someone help me?


  • The topic ‘JQuery datepicker in custom plugin break other wp stuffs’ is closed to new replies.