Making WordPress.org


Ignore:
Timestamp:
07/31/2018 06:41:41 AM (6 years ago)
Author:
dd32
Message:

Gutenberg: Better "fake upload" support for non-images.

See #3703.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php

    r7561 r7562  
    6565                            "id": id,
    6666                            "date": "", "date_gmt": "", "modified": "", "modified_gmt": "",
    67                             "guid": { "rendered": "" }, "title": { "rendered": file.name },
    68                             "description": { "rendered": ""}, "caption": { "rendered": "" }, "alt_text": "",
     67                            "guid": {}, "title": { "rendered": file.name, "raw": file.name },
     68                            "description": {}, "caption": {}, "alt_text": "",
    6969                            "slug": file.name, "status": "inherit", "type": "attachment", "link": "",
    7070                            "author": 0, "comment_status": "open", "ping_status": "closed",
    71                             "media_details": {}, "media_type": "image", "mime_type": file.type,
     71                            "media_details": {}, "media_type": file.type.split("/")[0], "mime_type": file.type,
    7272                            "source_url": "", // This gets filled below with a data uri
    7373                            "_links": {}
Note: See TracChangeset for help on using the changeset viewer.