Title: Possible bug found
Last modified: August 30, 2016

---

# Possible bug found

 *  [Presslabs](https://wordpress.org/support/users/presslabs/)
 * (@presslabs)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/possible-bug-found/)
 * Hello,
 * When using the plugin on presslabs.ro I consistently ran in to an infinite loop
   issue.
 * I’ve fixed it locally by following the advice at [http://codex.wordpress.org/Function_Reference/wp_update_post#Caution_-_Infinite_loop](http://codex.wordpress.org/Function_Reference/wp_update_post#Caution_-_Infinite_loop)
 * This is the patch:
 *     ```
       diff --git a/wp-content/plugins/image-teleporter/image-teleporter.php b/wp-content/plugins/image-teleporter/image-teleporter.php
       index cbc376a..01b87e0 100644
       --- a/wp-content/plugins/image-teleporter/image-teleporter.php
       +++ b/wp-content/plugins/image-teleporter/image-teleporter.php
       @@ -120,7 +120,9 @@ function bml_it_find_imgs ( $post_id ) {
                       $upd['ID']           = $post_id;
                       $upd['post_content'] = $content;
   
       +               remove_action('save_post', 'bml_it_find_imgs', 100000);
                       wp_update_post($upd);
       +               add_action('save_post', 'bml_it_find_imgs', 100000);
               }
   
               // Post meta
       ```
   
 * —
    Regards, Radu Ciorba
 * [https://wordpress.org/plugins/image-teleporter/](https://wordpress.org/plugins/image-teleporter/)

Viewing 1 replies (of 1 total)

 *  [Matt Jackson](https://wordpress.org/support/users/mattsapcote/)
 * (@mattsapcote)
 * [10 years ago](https://wordpress.org/support/topic/possible-bug-found/#post-6891466)
 * I had this issue also, when combined with the WordPress Importer plugin.

Viewing 1 replies (of 1 total)

The topic ‘Possible bug found’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/image-teleporter_6d7d6f.svg)
 * [Image Teleporter](https://wordpress.org/plugins/image-teleporter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/image-teleporter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/image-teleporter/)
 * [Active Topics](https://wordpress.org/support/plugin/image-teleporter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-teleporter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-teleporter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matt Jackson](https://wordpress.org/support/users/mattsapcote/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/possible-bug-found/#post-6891466)
 * Status: not resolved