Title: [Plugin: Sharedaddy] Patch for notice in debug mode.
Last modified: August 20, 2016

---

# [Plugin: Sharedaddy] Patch for notice in debug mode.

 *  [Luke Gedeon](https://wordpress.org/support/users/lgedeon/)
 * (@lgedeon)
 * [14 years ago](https://wordpress.org/support/topic/plugin-sharedaddy-patch-for-notice-in-debug-mode/)
 * The plugin is throwing a notice when debug mode is on. An easy fix would be to
   modify line 42 of sharedaddy.php to:
    `if ( isset( $_POST['post_type'] ) && ('
   post' == $_POST['post_type'] || 'page' == $_POST['post_type'] ) ) {`
 * I can provide a patch if that would help. Since it was just one line this seemed
   easier.
 * [http://wordpress.org/extend/plugins/sharedaddy/](http://wordpress.org/extend/plugins/sharedaddy/)

The topic ‘[Plugin: Sharedaddy] Patch for notice in debug mode.’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sharedaddy.svg)
 * [Sharedaddy](https://wordpress.org/plugins/sharedaddy/)
 * [Support Threads](https://wordpress.org/support/plugin/sharedaddy/)
 * [Active Topics](https://wordpress.org/support/plugin/sharedaddy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sharedaddy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sharedaddy/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Luke Gedeon](https://wordpress.org/support/users/lgedeon/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-sharedaddy-patch-for-notice-in-debug-mode/)
 * Status: not resolved