Skip to content
New issue

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

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

Already on GitHub? # to your account

Add tests for functions (prepare for sites.ucsc.edu) #21

Closed
knice opened this issue Mar 8, 2024 · 0 comments · Fixed by #24
Closed

Add tests for functions (prepare for sites.ucsc.edu) #21

knice opened this issue Mar 8, 2024 · 0 comments · Fixed by #24
Assignees
Labels
change Change to an existing but not broken feature

Comments

@knice
Copy link
Member

knice commented Mar 8, 2024

Anytime we use a WordPress core API function, we need to use a conditional to check that the function exists. That gives us backwards compatibility and ensures we don't cause any unplanned PHP errors on sites with older themes and plugins.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
change Change to an existing but not broken feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants