Make WordPress Core

Opened 21 years ago

Closed 21 years ago

#827 closed defect (bug) (fixed)

get_postdata should not alter global $post array

Reported by: ringmaster's profile ringmaster Owned by: ryan's profile ryan
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)

functions.php.patch (536 bytes) - added by ringmaster 21 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ringmaster
21 years ago

  • Patch set to No

#2 @ringmaster
21 years ago

  • Patch changed from No to Yes

#3 @ryan
21 years ago

  • fixed_in_version set to 1.5
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.