| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 (function() { 2 "use strict"; 3 var wp; 4 (wp ||= {}).warning = (() => { 5 var __defProp = Object.defineProperty; 6 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 7 var __getOwnPropNames = Object.getOwnPropertyNames; 8 var __hasOwnProp = Object.prototype.hasOwnProperty; 9 var __export = (target, all) => { 10 for (var name in all) 11 __defProp(target, name, { get: all[name], enumerable: true }); 12 }; 13 var __copyProps = (to, from, except, desc) => { 14 if (from && typeof from === "object" || typeof from === "function") { 15 for (let key of __getOwnPropNames(from)) 16 if (!__hasOwnProp.call(to, key) && key !== except) 17 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 18 } 19 return to; 20 }; 21 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 22 23 // packages/warning/build-module/index.mjs 24 var index_exports = {}; 25 __export(index_exports, { 26 default: () => warning 27 }); 28 29 // packages/warning/build-module/utils.mjs 30 var logged = /* @__PURE__ */ new Set(); 31 32 // packages/warning/build-module/index.mjs 33 function isDev() { 34 return true; 35 } 36 function warning(message) { 37 if (!isDev()) { 38 return; 39 } 40 if (logged.has(message)) { 41 return; 42 } 43 console.warn(message); 44 try { 45 throw Error(message); 46 } catch { 47 } 48 logged.add(message); 49 } 50 return __toCommonJS(index_exports); 51 })(); 52 if (typeof wp.warning === 'object' && wp.warning.default) { wp.warning = wp.warning.default; } 53 (window.wp ||= {}).warning = wp.warning; 54 })();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sat Aug 15 08:20:25 2026 | Cross-referenced by PHPXref |