WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #18310, comment 5


Ignore:
Timestamp:
05/25/2012 01:21:26 AM (8 years ago)
Author:
iandunn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18310, comment 5

    v1 v2  
    1111So, before calling ''strpos(),'' ''attach_uploads()'' also needs to check for a valid GUID, and if necessary, generate one.
    1212
    13 Maybe the code that generates the GUID should be refactored into its own function so that it's DRY.
     13Maybe the code that generates the GUID in both functions (and possibly others) should be refactored into its own function so that it's DRY.