wpdreams / ajax-search-pro-development

Issues and dev tracking repository for Ajax Search Pro for WordPress plugin
0 stars 0 forks source link

Multisite custom template path incorrect when results mixed from across blogs #122

Closed ernestmarcinko closed 1 month ago

ernestmarcinko commented 1 month ago

Describe the bug

Reference ticket.

When using the templating system on multisite within a child theme, sometimes the theme path gets mixed up because of late call of restore_current_blog() call.

To Reproduce

Steps to reproduce the behavior:

  1. Use a child theme
  2. Multisite
  3. Add custom template in /asp directory in child theme
  4. Search within shared post types across blogs
  5. The template directory is incorrect and links to the main theme directory