Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_option( 'taxonomy_image_plugin' ) not returning all images #21

Open
andremalenfant opened this issue Nov 1, 2013 · 1 comment
Open

Comments

@andremalenfant
Copy link

get_option( 'taxonomy_image_plugin' ) is not returning some of the taxonomy images I have configured. I triple checked and the images are associated with the taxonomies but the array does not contain them.

@Mte90
Copy link

Mte90 commented Jun 25, 2014

Bug confirmed.
I've tried to analyze the problems, the image it's saved with an id different of the taxonomy id.

For fix this (require maybe to reconfigure all the img) in taxonomy-images.php:
Remove line 779-781
Replace with:

$tt_id = $term_id;

For resolve a check that i've not time for fix i have commented the line 526-521:

/*if ( ! taxonomy_image_plugin_check_permissions( $tt_id ) ) {
        taxonomy_image_plugin_json_response( array(
            'status' => 'bad',
            'why'    => esc_html__( 'You do not have the correct capability to manage this term', 'taxonomy-images' ),
        ) );
    }*/

Finally in public-filter.php and taxonomy-images.php replace all term_taxonomy_id with term_id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants