Make WordPress Core

Ticket #65045: trashable-types-fix.patch

File trashable-types-fix.patch, 503 bytes (added by baikare.sandeep007, 2 months ago)

A patch will be attached to remove the duplicate entry.

  • src/js/_enqueues/wp/api.js

    diff --git a/src/js/_enqueues/wp/api.js b/src/js/_enqueues/wp/api.js
    index 1d0baea8cd..f9fe443bb2 100644
    a b  
    810810        'use strict';
    811811
    812812        var wpApiSettings = window.wpApiSettings || {},
    813         trashableTypes    = [ 'Comment', 'Media', 'Comment', 'Post', 'Page', 'Status', 'Taxonomy', 'Type' ];
     813        trashableTypes    = [ 'Comment', 'Media', 'Post', 'Page', 'Status', 'Taxonomy', 'Type' ];
    814814
    815815        /**
    816816         * Backbone base model for all models.