Opened 16 years ago
Closed 16 years ago
#12372 closed defect (bug) (fixed)
Remove Archaic get_children() reference returns
| Reported by: | filosofo | Owned by: | filosofo |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
It appears from r03321 that the children objects variable returned by get_children originally was meant to be bound by reference to the posts object cache.
However, currently get_children passes its objects to update_post_cache which in turn iterates over them not by reference with wp_cache_add. So the reference is no longer to the cache.
Besides, aside from the new twentyten theme, nowhere else in core does a variable get bound to that returned by get_children. So patch removes get_children's reference syntax.
Attachments (2)
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Refreshed patch.