| @@ -13,10 +13,11 @@ | ||
| 13 | 13 | |
| 14 | 14 | public function dispatch_hooks() { |
| 15 | 15 | Frontend\Template::init(); |
| 16 | 16 | Frontend\Link::init(); |
| 17 | - if ( ! is_admin() ) { | |
| 18 | - add_filter( 'render_block', [ Frontend\DynamicContent\Interpreter::class, 'init' ] ); | |
| 17 | + Frontend\LinkPassthrough::init(); | |
| 18 | + if ( ! is_admin() || defined( 'DOING_AJAX' ) && DOING_AJAX ) { | |
| 19 | + add_filter( 'render_block', [ Frontend\DynamicContent\Interpreter::class, 'init' ], 10, 3 ); | |
| 19 | 20 | } |
| 20 | 21 | } |
| 21 | 22 | |
| 22 | 23 | } |