Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Category.prototype['delete'] = Category.prototype.del = function (query, fn) {
var path = '/sites/' + this._sid + '/categories/slug:' + this._slug + '/delete';
return request.del(this.wpcom, null, path, query, fn);
};
Media.prototype['delete'] = Media.prototype.del = function (query, fn) {
var path = '/sites/' + this._sid + '/media/' + this._id + '/delete';
return request.del(this.wpcom, def, path, query, fn);
};