WordPress.org

Ready to get started?Download WordPress

Forums

WP-reCAPTCHA
relocated plugins folders (1 post)

  1. anmari
    Member
    Posted 2 years ago #

    Dear BlaenkDenum,
    I appreciate that you are looking for someone to take over the plugin - I hesitate to volunteer as I already have a few free ones I support.

    So for now, just a quick note in case you are doing an update anyway and/or for the benefit of others:

    The plugin does not currently take into account possibility that wp content and/or plugin directories may have been customised/relocated.

    calls to

    WPPlugin::path_to_plugin_directory() and
    $this->path_to_plugin_directory()

    can be replaced with

    plugin_dir_path();

    and/OR

    In file wp-plugin.php around Lines 56 and below with either

    static function plugins_directory() {
    			return plugin_dir_path(__FILE__);
    }

    and (strangely enough!)

    static function plugins_url() {
    		return plugins_url();

    Many of the code there probably could be simplified these days, however I appreciate the effort ittakes to retest.
    AND as you have pointed out to many bwp-recaptcha works well too!

    http://wordpress.org/extend/plugins/wp-recaptcha/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by anmari
  • This topic is not a support question
  • WordPress version: 3.3.1