Skip to content

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

@ernestmarcinko

Description

@ernestmarcinko

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions