Make WordPress Core

Changes between Version 9 and Version 10 of Ticket #63086, comment 40


Ignore:
Timestamp:
03/18/2025 09:10:42 PM (10 months ago)
Author:
SirLouen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63086, comment 40

    v9 v10  
    8282}}}
    8383
    84 The `cache_add` is done too early. During the normal execution, cache_add is going to be executed at least one other time. But this first time makes the different enough, so Parent theme won't be set and hence, a blank screen will appear
     84The `cache_add` is done too early.
    8585
    8686By removing this fragment
     
    124124}}}
    125125
    126 Solves this report also, and as I say, $cache will be populated later because, as I see this fragment, was mostly designed for non-block themes.
     126Solves this report also, but cache should be populated after the parent call.
     127
     128Maybe the solution is simply considering another check specific for block themes instead of asking devs for not using this function between 'muplugins_loaded' and 'plugins_loaded' (in a mu-plugin basically)