Title: Fix php warnings
Last modified: August 30, 2016

---

# Fix php warnings

 *  [basteln3rk](https://wordpress.org/support/users/basteln3rk/)
 * (@basteln3rk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/fix-php-warnings/)
 * Thanks for useful plugin! I fix some PHP warnings that appeared in the admin 
   panel –
 *     ```
       92a93,94
       >     if ($media_custom_fields) {
       >           foreach ( $media_custom_fields as $custom_field ) {
       94,100c96,100
       <     foreach ( $media_custom_fields as $custom_field ) {
       <
       <         $form_fields[ $custom_field['unique_id']  ] = array(
       <             'label' => $custom_field['name'] ,
       <             'value' => get_post_meta( $post->ID, '_' . $custom_field['unique_id'] , true ),
       <             'helps' => $custom_field['help']
       <         );
       ---
       >               $form_fields[ $custom_field['unique_id']  ] = array(
       >                   'label' => $custom_field['name'] ,
       >                   'value' => get_post_meta( $post->ID, '_' . $custom_field['unique_id'] , true ),
       >                   'helps' => $custom_field['help']
       >               );
       101a102
       >           }
       200c201
       <     if ( ( $_GET['delete'] ) ) {
       ---
       >     if ( isset( $_GET['delete'] ) ) {
       241c242
       <                 <?php $index_count++;} ?>
       ---
       >                 <?php } ?>
       ```
   
 * [https://wordpress.org/plugins/add-custom-fields-to-media/](https://wordpress.org/plugins/add-custom-fields-to-media/)

The topic ‘Fix php warnings’ is closed to new replies.

 * ![](https://ps.w.org/add-custom-fields-to-media/assets/icon-256x256.png?rev=3019065)
 * [Add Custom Fields to Media](https://wordpress.org/plugins/add-custom-fields-to-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-custom-fields-to-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-custom-fields-to-media/)
 * [Active Topics](https://wordpress.org/support/plugin/add-custom-fields-to-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-custom-fields-to-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/)

## Tags

 * [enhancement](https://wordpress.org/support/topic-tag/enhancement/)
 * [php warnings](https://wordpress.org/support/topic-tag/php-warnings/)

 * 0 replies
 * 1 participant
 * Last reply from: [basteln3rk](https://wordpress.org/support/users/basteln3rk/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/fix-php-warnings/)
 * Status: not resolved