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

Disable wordpress auto formatting if needed #31

merged 1 commit into from May 16, 2016


None yet
2 participants

emechkov commented Apr 27, 2016

When I try to disable the wpautop filter by adding
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
to my function.php file, as explained here, it doesn't work because WPGlobus is calling wpautop function anyway.
This change lets WPGlobus check if the filter was removed in function.php. If the filter was removed, it skips the wpautop function call.

Disable wordpress auto formatting if needed
Disables the wpautop function call if the wpautop filter was disabled in function.php as shown here :

@tivnet tivnet merged commit 8cb3cca into WPGlobus:develop May 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment