• Resolved Matt Lowe

    (@squelch)


    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).

    https://www.ads-software.com/extend/plugins/simple-share-buttons-adder/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Plugin Author Simple Share

    (@davidoffneal)

    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.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incompatible with Pods’ is closed to new replies.