--- a/wp/wp-includes/js/dist/plugins.js Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/js/dist/plugins.js Fri Sep 05 18:52:52 2025 +0200
@@ -60,7 +60,7 @@
withPluginContext: () => (/* reexport */ withPluginContext)
});
-;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js
+;// ./node_modules/memize/dist/index.js
/**
* Memize options object.
*
@@ -222,24 +222,28 @@
-;// CONCATENATED MODULE: external ["wp","element"]
+;// external ["wp","element"]
const external_wp_element_namespaceObject = window["wp"]["element"];
-;// CONCATENATED MODULE: external ["wp","hooks"]
+;// external ["wp","hooks"]
const external_wp_hooks_namespaceObject = window["wp"]["hooks"];
-;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
+;// external ["wp","isShallowEqual"]
const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
-;// CONCATENATED MODULE: external ["wp","compose"]
+;// external ["wp","compose"]
const external_wp_compose_namespaceObject = window["wp"]["compose"];
-;// CONCATENATED MODULE: external "ReactJSXRuntime"
+;// external ["wp","deprecated"]
+const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
+var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
+;// external "ReactJSXRuntime"
const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js
+;// ./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js
/**
* WordPress dependencies
*/
+
/**
* Internal dependencies
*/
@@ -263,6 +267,8 @@
* A Higher Order Component used to inject Plugin context to the
* wrapped component.
*
+ * @deprecated 6.8.0 Use `usePluginContext` hook instead.
+ *
* @param mapContextToProps Function called on every context change,
* expected to return object of props to
* merge with the component's own props.
@@ -270,6 +276,10 @@
* @return {Component} Enhanced component with injected context as props.
*/
const withPluginContext = mapContextToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(OriginalComponent => {
+ external_wp_deprecated_default()('wp.plugins.withPluginContext', {
+ since: '6.8.0',
+ alternative: 'wp.plugins.usePluginContext'
+ });
return props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Context.Consumer, {
children: context => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, {
...props,
@@ -278,7 +288,7 @@
});
}, 'withPluginContext');
-;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-error-boundary/index.js
+;// ./node_modules/@wordpress/plugins/build-module/components/plugin-error-boundary/index.js
/**
* WordPress dependencies
*/
@@ -319,9 +329,9 @@
}
}
-;// CONCATENATED MODULE: external ["wp","primitives"]
+;// external ["wp","primitives"]
const external_wp_primitives_namespaceObject = window["wp"]["primitives"];
-;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js
+;// ./node_modules/@wordpress/icons/build-module/library/plugins.js
/**
* WordPress dependencies
*/
@@ -336,7 +346,7 @@
});
/* harmony default export */ const library_plugins = (plugins);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/api/index.js
+;// ./node_modules/@wordpress/plugins/build-module/api/index.js
/* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */
/**
* External dependencies
@@ -536,7 +546,7 @@
return Object.values(api_plugins).filter(plugin => plugin.scope === scope);
}
-;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-area/index.js
+;// ./node_modules/@wordpress/plugins/build-module/components/plugin-area/index.js
/**
* External dependencies
*/
@@ -643,11 +653,11 @@
}
/* harmony default export */ const plugin_area = (PluginArea);
-;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/index.js
+;// ./node_modules/@wordpress/plugins/build-module/components/index.js
-;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/index.js
+;// ./node_modules/@wordpress/plugins/build-module/index.js