Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Use underscore, not dash, in attachment.sizes[].mime_type #1807

@danielbachhuber

Description

@danielbachhuber

We should make sure all of our object attributes use underscores, not dashes.

{
  "id": 5,
  "media_details": {
    "width": 1682,
    "height": 1682,
    "file": "2015/11/portrait-new-3.jpg",
    "sizes": {
      "thumbnail": {
        "file": "portrait-new-3-150x150.jpg",
        "width": 150,
        "height": 150,
        "mime-type": "image/jpeg",
        "source_url": "http://wordpress-develop.dev/wp-content/uploads/2015/11/portrait-new-3-150x150.jpg"
      },
      "medium": {
        "file": "portrait-new-3-300x300.jpg",
        "width": 300,
        "height": 300,
        "mime-type": "image/jpeg",
        "source_url": "http://wordpress-develop.dev/wp-content/uploads/2015/11/portrait-new-3-300x300.jpg"
      },

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions