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

Use get_the_terms when possible to retrieve post's terms #47

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

petitphp
Copy link
Member

@petitphp petitphp commented Aug 1, 2024

No description provided.

@Rahe
Copy link
Member

Rahe commented Aug 2, 2024

Je ne comprend pas, wp_get_object_terms prend des arguments, pourquoi ne pas lui passer les args aussi ?

@petitphp
Copy link
Member Author

petitphp commented Aug 5, 2024

Actuellement, on utilise wp_get_object_terms dans le modèle dans 100% des cas. Cette PR modifie ça pour utiliser get_the_terms lorsque l'ont appel la méthode sans passer d'argument supplémentaire.

@petitphp petitphp merged commit e52013b into master Aug 6, 2024
1 check failed
@petitphp petitphp deleted the fix/model-get-terms branch August 6, 2024 10:05
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

Successfully merging this pull request may close these issues.

2 participants