Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #59646, comment 2


Ignore:
Timestamp:
10/17/2023 12:26:19 PM (11 months ago)
Author:
Bernhard Reiter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59646, comment 2

    initial v1  
    2020- Since the Navigation block's `blockHooks` attribute doesn't contain the Login/out button, it is rendered on the frontend.
    2121- If the user opens the Header template in the editor, the shopping cart block is added to the Navigation block's `blockHooks` attribute. This ensures that any further user modifications to the template will be reflected on the frontend; specifically, no extraneous instance of the Login/out block will be auto-inserted.
     22
     23The biggest change that this will require is a global `blockHooks` attribute (or some other sort of global per-block metadata).