Support » Plugin: Taxonomy Images II » [Plugin: Taxonomy Images II] Plugin directory Bugfix.

  • Hi, I’m running a wordpress install with the “wp-content” directories moved outside of the wordpress directory using “define( ‘WP_CONTENT_DIR”) in wp-config.php. So I have this directory structure:

    /html_root
    /wordpress
    /wp-admin
    /wp-settings.php
    [etc.]
    /uploads
    /themes
    /plugins

    I recently installed this plugin and found that it didn’t properly recognize that it wasn’t installed under wp-content. I modified ‘class-Plugin.php’ to fix it:

    from:

    protected function dir( $path ) {
    		return trailingslashit( $this->dir ) . trim( $path, '/' );
    	}

    to:

    protected function dir( $path ) {
    		return trailingslashit( dirname(__FILE__) ) . trim( $path, '/' );
    	}

    There, might be a better solution, but it fixed everything for me.

    http://wordpress.org/extend/plugins/category-images-ii/

  • The topic ‘[Plugin: Taxonomy Images II] Plugin directory Bugfix.’ is closed to new replies.