Make WordPress Core


Ignore:
Timestamp:
02/04/2020 08:14:50 PM (6 years ago)
Author:
jorgefilipecosta
Message:

Block Editor: Include navigation block server logic.

Core did not include the navigation block PHP files.
This commit fixes the issue referred, and now the navigation block is executed on the frontend. The block still does not work as expected and throws an error during frontend execution. That problem is going to be fixed on the next WordPress package update.
This commit adds the file as it is on the npm package used.

Props gziolo.
Fixes #49348.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/functions.php

    r47122 r47176  
    302302    remove_action( 'init', 'register_block_core_latest_comments' );
    303303    remove_action( 'init', 'register_block_core_latest_posts' );
     304    remove_action( 'init', 'register_block_core_navigation' );
    304305    remove_action( 'init', 'register_block_core_rss' );
    305306    remove_action( 'init', 'register_block_core_search' );
Note: See TracChangeset for help on using the changeset viewer.