Title: Please change code to get rid of notification message
Last modified: August 22, 2016

---

# Please change code to get rid of notification message

 *  Resolved [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/please-change-code/)
 * Hi
 * Notice: Trying to get property of non-object in /home/public_html/wp-content/
   plugins/simple-share-buttons-adder/simple-share-buttons-adder.php on line 674
 * please change line 674 in simple-share-buttons-adder.php
 * to in order to get rid of notification message in admin area.
 *     ```
       if (isset($post->post_content) && preg_match_all( '/'. $pattern .'/s', $post->post_content, $matches )
       			&& array_key_exists( 2, $matches )
       			&& in_array('ssba_hide', $matches[2])
       			&& $booShortCode == FALSE) {
   
       			// exit the function returning the content without the buttons
       			return $content;
       		}
       ```
   
 * Thank you !
 * [https://wordpress.org/plugins/simple-share-buttons-adder/](https://wordpress.org/plugins/simple-share-buttons-adder/)

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

 *  [Lea](https://wordpress.org/support/users/leac/)
 * (@leac)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/please-change-code/#post-5781722)
 * Hi BackuPs,
 * Thanks so much for posting this. It really helped me.
 * David, is there a plan to integrate this in a future version?
 * Thank you!
 *  Plugin Author [Simple Share](https://wordpress.org/support/users/davidoffneal/)
 * (@davidoffneal)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/please-change-code/#post-5781748)
 * Thank you for taking the time to report this and provide a fix to the notice.
 * I have made the change locally and the next release will include the fix.
 * David
 *  Thread Starter [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/please-change-code/#post-5781750)
 * Hi David,
 * No, a Big Thank you for making such a great plugin !
 *  [Lea](https://wordpress.org/support/users/leac/)
 * (@leac)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/please-change-code/#post-5781751)
 * Hi David,
 * Thanks for the update. I downloaded and installed version 5.6, but I don’t see
   the fix for this…
    Is that possible?
 * Thank you for a great plugin
    Lea
 *  [olimax](https://wordpress.org/support/users/olimax/)
 * (@olimax)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/please-change-code/#post-5781766)
 * It is still an issue
    The fix would be appreciated Thanks
 *  Plugin Author [Simple Share](https://wordpress.org/support/users/davidoffneal/)
 * (@davidoffneal)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/please-change-code/#post-5781770)
 * My apologies, this was omitted from the current release. I have made the change
   and it shall be included in the next version.
 * Thanks,
 * David

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

The topic ‘Please change code to get rid of notification message’ is closed to new
replies.

 * ![](https://ps.w.org/simple-share-buttons-adder/assets/icon-256x256.png?rev=2661516)
 * [Simple Share Buttons Adder](https://wordpress.org/plugins/simple-share-buttons-adder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-share-buttons-adder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-share-buttons-adder/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-share-buttons-adder/reviews/)

## Tags

 * [adder](https://wordpress.org/support/topic-tag/adder/)
 * [buttons](https://wordpress.org/support/topic-tag/buttons/)
 * [simple](https://wordpress.org/support/topic-tag/simple/)

 * 6 replies
 * 4 participants
 * Last reply from: [Simple Share](https://wordpress.org/support/users/davidoffneal/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/please-change-code/#post-5781770)
 * Status: resolved