Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#17060 closed enhancement (duplicate)

Code cleanup in get_file_data()

Reported by: strider72 Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Plugins Keywords: has-patch
Focuses: Cc:


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)

17060-cleanup.diff (646 bytes) - added by strider72 11 years ago.

Download all attachments as: .zip

Change History (4)

#1 @strider72
11 years ago

Better relevant comment from original get_file_data() ticket:

#2 follow-up: @scribu
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Heh: #15743

#3 in reply to: ↑ 2 @strider72
11 years ago

Replying to scribu:

Heh: #15743

LOL -- Scribu said in six letters what I said in six sentences!

Last edited 11 years ago by strider72 (previous) (diff)
Note: See TracTickets for help on using tickets.