WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Matt Lowe
    Member
    Posted 1 year 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).

    http://wordpress.org/extend/plugins/simple-share-buttons-adder/

  2. Scott Kingsley Clark
    Member
    Posted 1 year 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. David Neal
    Member
    Plugin Author

    Posted 1 year 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.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.