Support » Plugin: Exports and Reports » Issue with api is_plugin_active (fix included)

  • Resolved skillio

    (@skillio)


    Line 22 of api.php:

    if ( ! function_exists( 'is_plugin_active' ) || ! is_plugin_active( dirname( __FILE__ ) . '/exports-and-reports.php' ) ) {

    Should have basename to limit the dirname, otherwise the check is always failing with the full path, which is_plugin_active doesn’t seem to accept. Fix:

    if ( ! function_exists( 'is_plugin_active' ) || ! is_plugin_active( basename( dirname( __FILE__ ) ) . '/exports-and-reports.php' ) ) {

    Also: What’s the easiest way to contribute to this plugin? The wordpress plugins trac seems like it’s all plugins rolled into one trac. I see an outdated version on github. The author has a github account but not this file. Is there a recommended way to contribute?

    cheers,
    -eric

    https://wordpress.org/plugins/exports-and-reports/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Issue with api is_plugin_active (fix included)’ is closed to new replies.