Wordpress: Plugin jQuery Conflict

In Progress

Our plugin named CSV 2 POST conflicts with some other plugins and themes. The plugins main developer spent an entire day trying to fix it but all we can do is confirm what code triggers the problem and provide example conflicts. This task could be very quick for anyone with experience in Wordpress script loading and debugging script.

The conflict causes our use of jQuery UI tabs to fail and so multiple screens are stacked with a list of links at the top.

Example Conflicting Plugin: Wordfence Security

This plugin can be downloaded by searching Wordfence in your blogs admin. It happens to be great plugin and highly recommended to anyone not yet taking care of security in Wordpress.

The specific lines in Wordfence Security that load scripts which conflict with CSV 2 POST are on lines 1354 and 1355 in wordfenceClass.php. They are wp_enqueue_style('wp-pointer') and wp_enqueue_script('wp-pointer'). So the conflict is wp-pointer script being loaded and may happen with other plugins. It is a standard Wordpress core script and always registered.

CSV 2 POST Conflict

CSV 2 POST by Zara Walsh can be found on [url removed, login to view] by searching CSV 2 POST on the Wordpress plugins screen in the blog admin. Please install this first and see how our plugin is meant to look. We may be updating it very soon to improve installation.

The wp-pointer script conflicts with our jQuery UI button and possibly our use of jQuery UI dialog but we know for sure the removal of the button allows the CSV 2 POST screen to operate correctly, in most ways. The script for the button is called using a PHP function on many screens csv2post_jquery_button(). The main use of the button code is at the end of our forms however it is used in around 15 different files. Our forms are finished using csv2post_formend_standard().

The button...

<button id="">

The script...

$(function() {

$( "button, input:submit, a", ".jquerybutton" ).button();

$( "a", ".jquerybutton" ).click(function() { return false; });

});

Our Script Loading

We use PHP function csv2post_print_admin_scripts() and csv2post_ADDACTION_admin_init_registered_scripts(). These function names may change eventually but we'll try not to continue our re-structuring work until this is complete. If you cannot find the functions in a search just search wp_register_script() and wp_enqueue_script(). We do load scripts properly and only when on a CSV 2 POST screen. The example plugins and examples of conflicting themes can be giving which load scripts at all times. Sometimes they must, sometimes the author just has not avoided loading scripts on all admin pages. Either way the fault looks to be CSV 2 POST and it is urgent we fix it.

We use these two lines in csv2post.php. The first loads script files the second prints them as any Wordpress developer knows. Both are placed for happening within admin and when on CSV 2 POST screens.

csv2post_script('admin');

add_action( 'wp_print_scripts', 'csv2post_print_admin_scripts' );

Skills: PHP, Software Testing

See more: wp developer plugin, wordpress software developer find, wordpress plugins software, wordpress plugin script developer, wordpress org developer, wordpress developer themes, wordpress developer plugin, wordpress developer names, wordpress developer functions, wordpress developer blog, wordpress core, what to look for in a wordpress developer, what id wordpress developer, we trying to function, ui urgent care, top wordpress developer, themes developer wordpress, standard wordpress, software developer what they do, software developer other names, software developer names, search plugin jquery, searching for software developer, searching for a software developer, plugins wordpress developer

Project ID: #4174628

Awarded to:

fathimak

I can fix it now..

£55 GBP in 0 days
(1 Review)
1.9

7 freelancers are bidding on average £136 for this job

xpertzdevelopers

Lets start :)

£230 GBP in 3 days
(26 Reviews)
5.3
waqar67

Greeting, Have Gone through your requirement and understood, we are very sure that we can do your needs with your entire satisfaction. We have left a PMB for you plz feel free to have a look over there. More

£199 GBP in 3 days
(10 Reviews)
3.9
struggler1

will done in very less time sure,see my profile,ready to start job now. thanks

£100 GBP in 0 days
(1 Review)
3.1
suvendukm143

Hello, Experienced wordpress coder Here.

£20 GBP in 0 days
(4 Reviews)
2.0
iacdelhi

This message is simply to say that we can start immediately.Please check PMB.

£150 GBP in 3 days
(1 Review)
2.0
fkhateeb

lets do it

£150 GBP in 1 day
(0 Reviews)
0.0
frankiedave

Hello. We can get the issue resolved and make the plugin working fine. We can start working soon the project get awarded to us

£100 GBP in 1 day
(0 Reviews)
0.0