fix: Umschreiber nennt Bibliotheks-IDs globaler Instanzen nur bei sichtbaren Bibliotheks-IDs (P13)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d7a991d130
commit
65a207488e
@@ -40,9 +40,10 @@ defined('ABSPATH') || exit;
|
||||
* that is dropped afterwards (audit L1).
|
||||
* - Skipped (named, never written): posts loadWritable() refuses (rights, Divi 4, unparsable markup – R8: not
|
||||
* remaining, so repeated calls end), global instances the change concerns (their library entry is a usage of its
|
||||
* own), library entries shown on live posts the caller may not edit (P8a), and library entries or Theme Builder
|
||||
* layouts visible site-wide without revisions (no restore point; a bulk write makes no backup copies). Posts the
|
||||
* caller may not read are never named, only counted (hidden_count, audit L4).
|
||||
* own; its ID is named only when DiviPageLoader::libraryIdsVisible(), ruling P13), library entries shown on
|
||||
* live posts the caller may not edit (P8a), and library entries or Theme Builder layouts visible site-wide
|
||||
* without revisions (no restore point; a bulk write makes no backup copies). Posts the caller may not read are
|
||||
* never named, only counted (hidden_count, audit L4).
|
||||
* - Save scope as in DiviWriter. The rewrite changes attributes only, so a library entry keeps its shape
|
||||
* (LibraryContent::shapeViolation() needs no check).
|
||||
* - A failed save after other posts were saved answers partial_write with data.saved; a failure before the first
|
||||
@@ -232,7 +233,7 @@ class PageRewriter
|
||||
return null;
|
||||
}
|
||||
|
||||
$result = (new TreeRewrite($rewrite()))->apply($page->index);
|
||||
$result = (new TreeRewrite($rewrite(), $this->loader->libraryIdsVisible()))->apply($page->index);
|
||||
foreach ($result['skipped'] as $node) {
|
||||
$skipped[] = ['post_id' => $id, 'reason' => $node['id'] . ': ' . $node['reason']];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user