Commit e9fa9a5
committed
Posts, Post Types: Change variable name in
This changes the `$tags` variable used within `wp_set_post_terms()` to `$terms`.
While the default for the `$taxonomy` argument is `post_tag`, the function can be used to assign terms to a post for any taxonomy. When a different taxonomy is passed, `$tags` is an inaccurate name and could be confusing.
Props hilayt24, costdev, SergeyBiryukov, krishaweb, desrosj.
Fixes #56331.
git-svn-id: https://develop.svn.wordpress.org/trunk@53825 602fd350-edb4-49c9-b593-d223f7449a82wp_set_post_terms() for clarity.1 parent 2fc9367 commit e9fa9a5
1 file changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5209 | 5209 | | |
5210 | 5210 | | |
5211 | 5211 | | |
5212 | | - | |
| 5212 | + | |
5213 | 5213 | | |
5214 | 5214 | | |
5215 | 5215 | | |
| |||
5218 | 5218 | | |
5219 | 5219 | | |
5220 | 5220 | | |
5221 | | - | |
| 5221 | + | |
5222 | 5222 | | |
5223 | 5223 | | |
5224 | 5224 | | |
5225 | 5225 | | |
5226 | 5226 | | |
5227 | 5227 | | |
5228 | | - | |
5229 | | - | |
| 5228 | + | |
| 5229 | + | |
5230 | 5230 | | |
5231 | 5231 | | |
5232 | | - | |
| 5232 | + | |
5233 | 5233 | | |
5234 | 5234 | | |
5235 | | - | |
| 5235 | + | |
5236 | 5236 | | |
5237 | | - | |
| 5237 | + | |
5238 | 5238 | | |
5239 | 5239 | | |
5240 | 5240 | | |
5241 | 5241 | | |
5242 | 5242 | | |
5243 | 5243 | | |
5244 | 5244 | | |
5245 | | - | |
| 5245 | + | |
5246 | 5246 | | |
5247 | 5247 | | |
5248 | | - | |
| 5248 | + | |
5249 | 5249 | | |
5250 | 5250 | | |
5251 | 5251 | | |
| |||
0 commit comments