Title: Request Modification to Code to Prevent Plugin Conflicts
Last modified: August 30, 2016

---

# Request Modification to Code to Prevent Plugin Conflicts

 *  [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/request-modification-to-code-to-prevent-plugin-conflicts/)
 * Hi. I develop the File Away plugin, and a user of mine came across a conflict
   between our two plugins. I did some digging and found the source of the conflict,
   and I’d like to request that the modification be made to your code, and I’ll 
   explain why.
 * In foogallery/includes/admin/class-extensions.php, your `handle_extension_action`
   method is going to conflict with almost any ajax action from any plugin, because
   the `$action` variable is used by WordPress for the ajax action handle. Your 
   function here is redirecting the page whenever the “action” and “extension” variables
   are present in the `$_REQUEST`.
 * I’d humbly recommend you change the action variable to something else, or, at
   minimum, add this line after line 29:
 *     ```
       29: $has_error      = safe_get_from_request( 'has_error' );
       30: if(!in_array($action, array('download','activate','deactivate'))) return;
       ```
   
 * Thanks for your time.
 * [https://wordpress.org/plugins/foogallery/](https://wordpress.org/plugins/foogallery/)

The topic ‘Request Modification to Code to Prevent Plugin Conflicts’ is closed to
new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [thomstark](https://wordpress.org/support/users/thomstark/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/request-modification-to-code-to-prevent-plugin-conflicts/)
 * Status: not resolved