#17060 closed enhancement (duplicate)
Code cleanup in get_file_data()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | minor | Version: | |
| Component: | Plugins | Keywords: | has-patch |
| Focuses: | Cc: |
Description
The patch that originally introduced the get_file_data() function had a spot that was not PHP 4 compatible. The fix was a bit clunky, but necessary at the time.
Now that WordPress requires PHP 5, we can tidy things up a bit.
Absolutely no behavioral change here, just turning four lines of code into one line.
Original ticket: http://core.trac.wordpress.org/ticket/8964
Relevant commmentary: http://core.trac.wordpress.org/ticket/8964#comment:27
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Better relevant comment from original get_file_data() ticket:
http://core.trac.wordpress.org/ticket/8964#comment:35