Skip to content
This repository was archived by the owner on Jun 11, 2021. It is now read-only.
This repository was archived by the owner on Jun 11, 2021. It is now read-only.

Unravel model directory path does not work with multisite #2

@johnnyicarus

Description

@johnnyicarus

The Sober/Unravel class uses wp_upload_dir() to determine the models directory, but in the context of sites that are not the primary site in a multisite install, wp_upload_dir() is set to something like wp-content/uploads/sites/:site_number, so (e.g.) custom post types and taxonomies declared via models/unravel seems to fail (WP Docs)

Figured this out while using models/unravel on a non-bedrock site I support and used get_theme_root() to set the models directory path, but I'm not sure if that is a generalisable solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions