WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Images II
Plugin directory Bugfix. (1 post)

  1. kevinrockwood
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic