Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CMSP-150] Update network setup #49

Merged
merged 6 commits into from
Jun 4, 2024

Conversation

jazzsequence
Copy link
Contributor

@jazzsequence jazzsequence commented Jun 4, 2024

This pull request fixes the network setup process by requiring the network setup file anytime allow multisite is true. Previously this was only included if MULTISITE was also true, but this prevents our network setup page (with the filters we've added) from displaying on the Network Setup page.

It also removes the tab before ob_start to fix the indentation in the textarea.

Additionally, it reduces the number of lines in the textarea and uses wp_kses_post instead of esc_html to prevent escaping legitimate HTML.

Screenshot 2024-06-04 at 11 53 27 AM

this is what replaces the default wp core network page with our own
this indents the first line in the textarea which we don't want
since our instructions are much shorter
in the future maybe we might want this to be filterable but I don't think we need it now
so we don't escape the html we're legitimately passing
@jazzsequence jazzsequence requested a review from a team as a code owner June 4, 2024 17:52
@jazzsequence jazzsequence merged commit cb4e5b1 into main Jun 4, 2024
7 checks passed
@jazzsequence jazzsequence deleted the cmsp-150-update-network-finalize branch June 4, 2024 19:40
al-esc added a commit to crowdfavorite/pantheon-mu-plugin that referenced this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants