You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On WordPress.org we have a mu-plugin active for the news site, main-network/site-main.php, which has various filters including:
The [credits] shortcode
archives/12345 links (can probably stay)
old-slug redirect fixing for podcasts (query alterations below break it I think?)
File upload max size (can probably stay)
Query alterations:
Podcasts to appear as /YYYY/MM/{$title}/
Podcasts to be included in post query blocks (for front page)
Podcasts to be included in the main News feed
Adding the Podcast category to Podcasts when displayed within a post archive
Adding the WP Briefing: prefix to podcasts when displayed within Feeds
Some, if not all, of these can probably be moved into the theme.
Creating this here for context for others that a) this mu-plugin exists and does these things and b) as a tracking/future-reminder for where the related code is.
The text was updated successfully, but these errors were encountered:
Would it be better to put it in wporg-mu-plugins, so that it persists across theme changes? I wouldn't expect to find any of those things in a functions.php.
so that it persists across theme changes? I wouldn't expect to find any of those things in a functions.php.
Hmm... I guess. But I don't really consider that to be a good reason, since it's one-and-the-same site. I guess I don't really believe in Plugin-Theme separation when it comes to site-specific themes.
I guess a middle-ground could be to create a /source/wp-content/mu-plugins/ folder within this repo, and sync it to dotorg with the proper loaders.
One one hand, i'd be happy to see us open-source the mu-plugins/{main,make}-network/ folders, on the other hand, there isn't much benefit in open-sourcing them like that, because they're tightly-coupled to the WordPress.net network structure, rather than to the theme being run on a site.
On WordPress.org we have a mu-plugin active for the news site,
main-network/site-main.php
, which has various filters including:archives/12345
links (can probably stay)/YYYY/MM/{$title}/
WP Briefing:
prefix to podcasts when displayed within FeedsSome, if not all, of these can probably be moved into the theme.
Creating this here for context for others that a) this mu-plugin exists and does these things and b) as a tracking/future-reminder for where the related code is.
The text was updated successfully, but these errors were encountered: