Lines:
1 to 43 of 43
<?php // (C) Copyright Bobbing Wide 2012-2020 /** * Dependency checking logic for WordPress plugins and themes * * This logic has been converted to a shared library in libs/oik-activation.php * It is required for plugins which have dependencies but the dependency checking * has not already been provided by a plugin which delivers the shared library. * * @TODO Remove the redundant code */ if ( function_exists( "oik_plugin_lazy_activation" ) ) { // It's already defined so we don't need this lot } else { bw_trace2( __FILE__, "doing_it_wrong", false, BW_TRACE_ERROR ); _doing_it_wrong( __FILE__, "Use libs/oik-activation.php", "oik v3.0.0" ); echo "<!-- "; echo __FILE__; var_dump( debug_backtrace() ); echo "-->"; } /* function oik_plugin_install_plugin() – Produce an install plugin link */ /* function oik_plugin_activate_plugin() – Produces an "activate" plugin link */ /* function oik_plugin_update_plugin() – Create an Update plugin link */ /* function oik_plugin_check_installed_plugin() – Find out if we think the plugin is installed but not activated or not even installed */ /* function oik_plugin_is_plugin_activated() – Test if the plugin is activated */ /* function oik_plugin_oik_install_link() – oik_plugin_oik_install_link */ if ( !function_exists( "oik_plugin_plugin_inactive" ) ) { /* function oik_plugin_plugin_inactive() – Display a message when setup is not fully functional due to the dependencies not being activated or installed Note: We can’t use oik APIs here as we don’t know if it’s activated. */ } /* function oik_plugin_lazy_activation() – Test if this plugin is functional */View on GitHub View on Trac