Simple Share Buttons Adder
[resolved] Incompatible with Pods (3 posts)

  1. Matt Lowe
    Posted 3 years ago #

    Hi, just thought I'd let you know that your plugin is incompatible with the Pods plugin. On installing I get the following error:

    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Cannot redeclare get_current_url() (previously declared in /Users/lowey/Sites/images/wp-content/plugins/pods/includes/general.php:432) in /Users/lowey/Sites/images/wp-content/plugins/simple-share-buttons-adder/simple-share-buttons-adder.php on line 754

    It's generally best to prefix your function names with something unique (and yes, the Pods plugin ought to be doing this too).


  2. Scott Kingsley Clark
    Posted 3 years ago #

    This is a deprecated function in Pods and loads only if it's not set using a if ( !function_exists( 'get_current_url' ) ) statement. It will be removed entirely from Pods in the future. This is more of a note for the plugin developer.

  3. Simple Share
    Plugin Author

    Posted 3 years ago #

    Hi Matt,

    Thanks for pointing this out, I have replaced the function name for Simple Share Buttons Adder with - ssba_current_url()

    It shall be part of the next release.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Share Buttons Adder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.