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

Change wpautop disabling function to remove the filter #677

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

bradp
Copy link
Contributor

@bradp bradp commented Jun 15, 2021

DESCRIPTION

Rather than removing the default filter and either returning wpautop( $content ) or $content, this instead will remove the filter when we want it removed.

This allows the theme to still have the correct expected behavior when adding remove_filter( 'the_content', 'wpautop' ) elsewhere, because we are no longer overriding the filter.

OTHER

  • Is this issue accessible? (Section 508/WCAG 2.0AA)
  • Does this issue pass all the linting? (PHPCS, ESLint, SassLint)
  • Does this pass CBT?

@bradp bradp requested a review from coreymcollins as a code owner June 15, 2021 21:27
@gregrickaby gregrickaby merged commit 342d67d into main Jun 16, 2021
@gregrickaby gregrickaby deleted the feature/fix-wpautop-filter branch June 16, 2021 15:27
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