disqus/disqus-wordpress — pull request #42 by jlengstorf (2012-12-21 07:16:46+00:00)
Title: Added a check to make sure the array key exists to avoid a notice.

Added a check to make sure the array key exists to avoid a notice when WP_DEBUG is set to TRUE.

On WordPress installs that have `WP_DEBUG` set to `TRUE`, the following notice is displayed:

Notice: Undefined index: post-trashed in /path/to/public_html/wp-content/plugins/disqus-comment-system/disqus.php on line 936

This doesn't seem to affect the plugin's operation, so simply adding a check for the existence of the index removes the notice and shouldn't pose any issues for the plugin's operation.

This notice appears in WordPress 3.4.2 and 3.5 with `WP_DEBUG` enabled.. It may occur in older versions, but I didn't bother to check.