Opened 21 years ago
Closed 21 years ago
#827 closed defect (bug) (fixed)
get_postdata should not alter global $post array
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | trivial | Version: | 1.5 |
| Component: | Administration | Keywords: | |
| Focuses: | Cc: |
Description
get_postdata() called from user_can_edit_post() alters the global $post array, reloading post data into that variable in the middle of The Loop. This unsets any user-specified array elements that may have been set for use in the main loop. get_postdata() should only return the data required by the call and should not modify global variables.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.