Subir ajustes de acordeon y SEO

This commit is contained in:
Gabriel
2026-10-23 11:18:13 -06:00
parent 03333c3ce7
commit 14b96152a5
103 changed files with 6638 additions and 5316 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 {
}
}