Commit 948aca3
Convert post to WP_Post object before getting terms
Use get_post() to ensure we have a proper WP_Post object
before retrieving terms. This ensures wp_get_object_terms()
can correctly access term relationships that may not be
available on raw database objects.
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>1 parent c460364 commit 948aca3
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
0 commit comments