Following code is located in the block_page_build function.

$item = menu_get_item();
if ($item['path'] != 'admin/structure/block/demo/' . $theme) {
...
else {
    // Append region description if we are rendering the regions demo page.
    $item = menu_get_item();
    if ($item['path'] == 'admin/structure/block/demo/' . $theme) {

The second item and if request can be removed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nils.destoop’s picture

Status: Active » Needs review
FileSize
2.19 KB

And a patch

benjy’s picture

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Nice find!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Great find!

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.