Title: drbroad's Replies | WordPress.org

---

# drbroad

  [  ](https://wordpress.org/support/users/drbroad/)

 *   [Profile](https://wordpress.org/support/users/drbroad/)
 *   [Topics Started](https://wordpress.org/support/users/drbroad/topics/)
 *   [Replies Created](https://wordpress.org/support/users/drbroad/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/drbroad/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/drbroad/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/drbroad/engagements/)
 *   [Favorites](https://wordpress.org/support/users/drbroad/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Enable Media Replace] Critical error with offloaded files](https://wordpress.org/support/topic/critical-error-with-offloaded-files/)
 *  Thread Starter [drbroad](https://wordpress.org/support/users/drbroad/)
 * (@drbroad)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/critical-error-with-offloaded-files/#post-17372817)
 * It does not happen with local files, or jpgs that are offloaded.
 * I will try another plugin – thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cloudinary - Deliver Images and Videos at Scale] Prevent the plugin from rewriting the theme source](https://wordpress.org/support/topic/prevent-the-plugin-from-rewriting-the-theme-source/)
 *  [drbroad](https://wordpress.org/support/users/drbroad/)
 * (@drbroad)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/prevent-the-plugin-from-rewriting-the-theme-source/#post-16244953)
 * Just to piggyback off of this: we have the plugin option ‘Optimize images on 
   my site.’ set to false (off) but the plugin still transforms my image URLs:
 * For example, in my page I have an image:
    `<img src="https://res.cloudinary.com/
   sallysapizza/images/v1669074237/dev/michael-discenza-MxfcoxycH_Y-unsplash/michael-
   discenza-MxfcoxycH_Y-unsplash.jpg?_i=AA">`
 * And this gets turned into:
    `<img width="2054" height="2131" decoding="async"
   src="https://res.cloudinary.com/sallysapizza/images/w_2054,h_2131/v1669074237/
   dev/michael-discenza-MxfcoxycH_Y-unsplash/michael-discenza-MxfcoxycH_Y-unsplash.
   jpg?_i=AA" class="wp-image-99" data-public-id="dev/michael-discenza-MxfcoxycH_Y-
   unsplash.jpg" data-format="jpg" data-transformations="" data-version="1669074237"
   >`
 * This is even worse with SVGs where it changes the file extension to png – completely
   negating the benefits of SVG.
 * As with [@packjallo](https://wordpress.org/support/users/packjallo/) we use custom
   functions to transform our image/video URLs to our liking, and this hijacking
   of the output is frustrating to have to hack around.
 * I opened up a support ticket [https://support.cloudinary.com/hc/requests/207924](https://support.cloudinary.com/hc/requests/207924)
   and added a report, but was hoping you could shed some light on it in this thread
   so others may benefit.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cloudinary - Deliver Images and Videos at Scale] Throws an error when activating ACF Blocks plugin](https://wordpress.org/support/topic/throws-an-error-when-activating-acf-blocks-plugin/)
 *  Thread Starter [drbroad](https://wordpress.org/support/users/drbroad/)
 * (@drbroad)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/throws-an-error-when-activating-acf-blocks-plugin/#post-16149488)
 * Yes, I understand **what** is happening. I don’t understand **why** it isn’t 
   being type checked before attempting to access it.
 * You should know that dumping out those three arguments is going to cause the 
   browser to crash due to the sheer amount of data being output.
    You only want
   to see the data if it is malformed so I added this into the code:
 *     ```
       if ( '' === $key ) {
       			$new[] = $value;
       		} else {
       			if(!is_array($new)){
       				echo "--------------- <br>";
       				echo "Parts: <br>";
       				var_dump ($parts);
   
       				echo "<br><br>Param: <br>";
       				var_dump ($param);
   
       				echo "<br><br>Value: <br>";
       				var_dump ($value);
       				die();
       			}
   
       			$new[ $key ] = $value;
       		}
       ```
   
 * And the output is:
 *     ```
       ---------------
       Parts:
       array(0) { }
   
       Param:
       string(0) ""
   
       Value:
       string(0) ""
       ```
   
 * `
 * So why not just add something like this on like 55:
    `if(!is_array($new)) return
   $new;`
 * Given that this is an issue with your plugin argument handling, I’m curious why
   you are asking me to debug your code rather than your developers?
    -  This reply was modified 3 years, 6 months ago by [drbroad](https://wordpress.org/support/users/drbroad/).
    -  This reply was modified 3 years, 6 months ago by [drbroad](https://wordpress.org/support/users/drbroad/).

Viewing 3 replies - 1 through 3 (of 3 total)