WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #24753, comment 1


Ignore:
Timestamp:
07/22/2013 05:53:37 AM (5 years ago)
Author:
garyc40
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24753, comment 1

    v2 v3  
    2222
    2323- `Collection.add()` is now a wrapper for `Collection.set()`, which basically replaces `Collection.update()` in 0.9.10 as well. The difference is, `Attachments.parse()` should expect to be passed in these kinds of value, besides an array of non-Model JSON objects:
    24     1. An array containing a mix of Model objects as JSON objects.
     24    1. An array containing a mix of Models as well as plain attribute objects.
    2525    2. A single Model (not an array).
    2626