Title: Get PHP for theme generates wrong formatted code
Last modified: January 18, 2020

---

# Get PHP for theme generates wrong formatted code

 *  [Giorgio25b](https://wordpress.org/support/users/giorgio25b/)
 * (@giorgio25b)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/get-php-for-theme-generates-wrong-formatted-code/)
 * If I try to export the image sizes with custom cropping, the plugin generates
   wrong PHP strings, such as:
    `add_image_size('hero-1919x610', '1919', '610', ["
   center", "center"));` that triggers a WSOD on fronted, the code markup should
   be something like this: `add_image_size('hero-1919x610', '1919', '610', ["center","
   center"]);`
 * The closing `]` square bracket is converted in to `)` round bracket.
    -  This topic was modified 6 years, 4 months ago by [Giorgio25b](https://wordpress.org/support/users/giorgio25b/).
      Reason: Expanded the comments

The topic ‘Get PHP for theme generates wrong formatted code’ is closed to new replies.

 * ![](https://ps.w.org/simple-image-sizes/assets/icon-256x256.jpg?rev=3506203)
 * [Simple Image Sizes](https://wordpress.org/plugins/simple-image-sizes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-image-sizes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-image-sizes/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-image-sizes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-image-sizes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-image-sizes/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Giorgio25b](https://wordpress.org/support/users/giorgio25b/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/get-php-for-theme-generates-wrong-formatted-code/)
 * Status: not resolved