WordPress/wp-includes/js/dist/deprecated.min.js

2 lines
729 B
JavaScript
Raw Normal View History

/*! This file is auto-generated */
!function(){"use strict";var e={d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},n={};e.d(n,{default:function(){return i}});var t=window.wp.hooks;const o=Object.create(null);function i(e,n={}){const{since:i,version:r,alternative:c,plugin:a,link:d,hint:s}=n,l=`${e} is deprecated${i?` since version ${i}`:""}${r?` and will be removed${a?` from ${a}`:""} in version ${r}`:""}.${c?` Please use ${c} instead.`:""}${d?` See: ${d}`:""}${s?` Note: ${s}`:""}`;l in o||((0,t.doAction)("deprecated",e,n,l),console.warn(l),o[l]=!0)}(window.wp=window.wp||{}).deprecated=n.default}();