Actualizacion 7.1.2

This commit is contained in:
2026-09-25 12:02:42 -06:00
parent fa60d1f364
commit 32351c9497
221 changed files with 19735 additions and 6951 deletions
+24 -3
View File
@@ -11932,7 +11932,6 @@ var wp;
core.__experimentalGetCurrentThemeBaseGlobalStyles(),
core.__experimentalGetCurrentThemeGlobalStylesVariations(),
core.getEntityRecord("root", "__unstableBase"),
core.getEntityRecord("root", "site"),
core.canUser("read", { kind: "root", name: "site" }),
core.canUser("create", { kind: "postType", name: "attachment" }),
core.canUser("create", { kind: "postType", name: "page" }),
@@ -11970,11 +11969,13 @@ var wp;
] : []
]);
const tasks = [];
if (coreSelect.canUser("read", { kind: "root", name: "site" })) {
tasks.push(core.getEntityRecord("root", "site"));
}
const globalStylesId = coreSelect.__experimentalGetCurrentGlobalStylesId();
if (globalStylesId) {
tasks.push(
core.getEntityRecord("root", "globalStyles", globalStylesId),
core.canUser("read", {
core.canUser("update", {
kind: "root",
name: "globalStyles",
id: globalStylesId
@@ -12006,6 +12007,26 @@ var wp;
if (tasks.length) {
await Promise.all(tasks);
}
if (globalStylesId) {
if (coreSelect.canUser("update", {
kind: "root",
name: "globalStyles",
id: globalStylesId
})) {
await core.getEntityRecord(
"root",
"globalStyles",
globalStylesId
);
} else {
await core.getEntityRecord(
"root",
"globalStyles",
globalStylesId,
{ context: "view" }
);
}
}
} catch {
}
}