• These lines which I’m not using in my own plugin…

    wp_enqueue_style('wp-pointer');
    wp_enqueue_script('wp-pointer');

    conflict with this code below which creates a simple jQuery UI button and it is causing a lot of users problems. Fixing it will make plenty people happy so I’m under pressure in the email inbox, as always…

    function csv2post_jquery_button(){?>
        <script>
            $(function() {
                $( "button, input:submit, a", ".jquerybuttoncsv2post" ).button();
                $( "a", ".jquerybuttoncsv2post" ).click(function() { return false; });
            });
        </script><?php
    }
    
    function csv2post_formend_standard($buttontitle = 'Submit',$buttonid = 'notrequired'){
        if($buttonid == 'notrequired'){
            $buttonid = 'csv2post_notrequired';
        }else{
            $buttonid = $buttonid.'_formbutton';
        }?>
    
        <br />
    
        <div class="jquerybuttoncsv2post">
            <button id="<?php echo $buttonid;?>"><?php echo $buttontitle;?></button>
        </div>
    
        </form><?php
    }

    Does anyone have any ideas why this might be happening?

    Any plugin installed along side my own that uses the wp-pointer script causes my plugins interface to break down totally. jQuery Tabs, dialog and buttons all fail.

    Thank you for any insight and suggestions.

Viewing 1 replies (of 1 total)
  • Thread Starter Zara Walsh

    (@zara-walsh)

    Sorry I should re-phrase this.

    The scripts loaded obviously conflict. Just wondering if anyone has run into it before. My plugin loads the very latest .js files from Google and does it properly.

    Yet it would seem my plugin is still the one at fault considering wp-pointer is WordPress core and I’m sure there are plenty other plugins using jQuery UI buttons that work just fine.

    Wordfence Security and CSV 2 POST are the two plugins on here that conflict.

Viewing 1 replies (of 1 total)
  • The topic ‘wp_enqueue_style('wp-pointer') Conflict With jQuery UI Button’ is closed to new replies.