Giter Site home page Giter Site logo

meta-for-taxonomies's People

Contributors

benjaminniess avatar herewithme avatar nicolaskulka avatar petitphp avatar rahe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meta-for-taxonomies's Issues

Function name clashes with WordPress 4.4

Hi there.

Here what I spotted so far: update_termmeta_cache(), add_term_meta(), delete_term_meta(), get_term_meta() and update_term_meta().
But the worst part is that we also have non-matching function signatures: the plugin functions use $taxonomy as first parameter, but WordPress doesn't.

Cache group used in wp_cache_* functions should be 'term_taxo_meta' not 'term_taxometa'

update_termmeta_cache uses a $meta_type of 'term_taxo' when it calls update_meta_cache. In update_meta_cache, it appends '_meta' to the $meta_type to generate the $cache_key, loading everything into the 'term_taxo_meta' cache group.

The plugin has a number of calls to wp_cache_set, wp_cache_get, and wp_cache_delete all using 'term_taxometa'. I noticed it by trying to use get_term_custom and backtracking when it wasn't getting values I could see in the database it was saving.

Doesn't seem to affect retrieving single term meta values with get_term_meta since that is using the core get_metadata function that handles appending the correct '_meta' string to the $meta_type.

Clash in function naming: `add_term_meta` with All in One SEO Pack Pro

Hello! I thought you would be interested in this curious issue. Along the course of my work, I found that there is a clash in the name of function add_term_meta with All in One SEO Pack Pro while evaluating Taxonomy Thumbnail (which depends on this plugin optionally) and AIOSEOP Pro at the same time.

It appears that the function has yet to be used by AIOSEOP Pro for now, as I could not find any invocation of the function yet. Since the function has yet to be released in the free version, I think the most I can share offhand is the arguments list:

function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) { ... }

Bug avec get_term_id_from_meta

Quand on veut récupérer un terme à partir de sa valeur dans une taxonomie, la fonction get_term_id_from_meta ne renvoie pas la bonne valeur si la valeur recherchée est dans plusieurs termes.
Cela vient du fait que la fonction get_term_taxonomy_id_from_meta ne prend pas en compte la taxonomie.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.