Title: [PATCH] Some undefined offsets
Last modified: August 21, 2016

---

# [PATCH] Some undefined offsets

 *  Resolved [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/patch-some-undefined-offsets/)
 * With WP_DEBUG on I’m getting a few warnings on the widgets list page. In /plugins/
   contextual-related-posts/contextual-related-posts.php:307
    change
 *     ```
       $title = esc_attr($instance['title']);
       $limit = esc_attr($instance['limit']);
       $show_excerpt = esc_attr($instance['show_excerpt']);
       $post_thumb_op = esc_attr($instance['post_thumb_op']);
       $thumb_height = esc_attr($instance['thumb_height']);
       $thumb_width = esc_attr($instance['thumb_width']);
       ```
   
 * to
 *     ```
       $title = isset($instance['title']) ? esc_attr($instance['title']) : '';
       $limit = isset($instance['limit']) ? esc_attr($instance['limit']) : '';
       $show_excerpt = isset($instance['show_excerpt']) ? esc_attr($instance['show_excerpt']) : '';
       $post_thumb_op = isset($instance['post_thumb_op']) ? esc_attr($instance['post_thumb_op']) : '';
       $thumb_height = isset($instance['thumb_height']) ? esc_attr($instance['thumb_height']) : '';
       $thumb_width = isset($instance['thumb_width']) ? esc_attr($instance['thumb_width']) : '';
       ```
   
 * [http://wordpress.org/plugins/contextual-related-posts/](http://wordpress.org/plugins/contextual-related-posts/)

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/patch-some-undefined-offsets/#post-3956101)
 * Thank you. I’ll implement this in the next version.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/patch-some-undefined-offsets/#post-3956315)
 * This has been fixed in the latest version of the plugin

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

The topic ‘[PATCH] Some undefined offsets’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/patch-some-undefined-offsets/#post-3956315)
 * Status: resolved