As querying for blocks of the WordPress Blocks Repository is happening using a REST request, the context is not set to admin. The problem is the Entrepôt inc/admin.php file is not loaded but the inc/hooks.php is. As a result the plugins_api filter is fired but the callback is not reachable it's causing the search to fail as The Plugins API returns Null although the filter is expending false to query WordPress.org. Checking for is_admin() is fixing the issue.
More globally Admin hooks should be in a different file and this file should only be loaded if the admin context is on.
As querying for blocks of the WordPress Blocks Repository is happening using a REST request, the context is not set to admin. The problem is the Entrepôt
inc/admin.php
file is not loaded but theinc/hooks.php
is. As a result theplugins_api
filter is fired but the callback is not reachable it's causing the search to fail as The Plugins API returnsNull
although the filter is expendingfalse
to query WordPress.org. Checking foris_admin()
is fixing the issue.More globally Admin hooks should be in a different file and this file should only be loaded if the admin context is on.