The solution at that page is fine. The reason it’s generating unexpected output is because you might have accidentally grabbed trailing whitespace when pasting it. If you use this instead:
<?php
/*
Plugin Name: TurnOffSmartQuotes
Plugin URI:
Description: Stops WordPress from converting your quote symbols into smartquotes. The three lines below stop the smartquote conversion in 1) your post content, 2) your comments, and 3) your post excerpts.
Version: 0.1
Author: Katja Stokley
Author URI:
*/
remove_filter('the_content', 'wptexturize');
remove_filter('comment_text', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
that should do the trick.
I’m not sure why WordPress isn’t correctly texturizing “didn’t”, but that will fix the problem.
Related Posts:
- Dashboard Disappears after Upgrade
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- How to catch/what to do with a WP Error Object
- An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration
- What are the best practices for updating?
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Error: call_user_func_array() expects parameter 1 to be a valid callback
- How to eliminate weird 404 errors in wp-admin?
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- Validation error: Extending Gutenberg gallery block
- How do I fix the “sorry, you are not allowed to access this page” error I get on the “plugins > settings” links?
- Should messages in WP_Error already be html escaped?
- How to get Login Error messages on a custom template
- PHP Deprecated: Non-static method should not be called statically
- Extension preview disapeared since WP 4.5.2
- Delete Custom Dashboard Widgets
- Editor access to plugin settings
- Plugins error (Use roles and capabilities instead) on latest version, multisite
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- How to develop a community feature in the dashboard for multiauthor site
- Error: “Cannot modify header information”
- Plugin.php: PHP Notice: Undefined offset: 0 in
- Why am I sometimes getting a 404 error when I try to update a page with Elementor?
- Remove Widgets in Dashboard
- check for the current screen
- “Are you sure you want to do this?” when deactivating all plugins in WordPress 4.3.1 [closed]
- How can I ‘reactivate’ .PHP files within a WP plugin that have been marked ‘inactive’?
- Give editors access to particular plugin – turn “admin.php” into “edit.php”
- How should I handle errors within a plugin?
- Force plugin to fail activation
- An Unexpected HTTP Error occurred during the API request
- Created Widget Not Showing up on Admin Panel
- Compatibility with RTL installations
- How do you install the automattic developer plugin under localhost for mamp when there is an error, deprecated?
- Dashboard Widget Form
- Why Better WP security plugin returns 418 I’m a Teapot “error”?
- Frontend editing, Frontend user dashboard
- echo do_shortcode is not working on theme’s template
- Seaweed Plugin not working
- All plugins deactivated due to error
- How can I see the error generated by plugin activation?
- Unable to activate wordpress importer after installing it
- Weird problems after recovery from security breach
- Can I use a form in a dashboard widget?
- Error in the wp-config.php file: PHP Fatal error: Uncaught Error: Unknown named parameter (PHP 8.0)
- How to implement Sentry on WordPress? [closed]
- Can a plugin still effect a site even after deletion?
- Accessing GET variable named ‘error’
- Error handling a plugin with exceptions
- Unable to install theme recommended plugins on Multisite
- Problem with wordpress version 3.8
- Determine Registered Admin Menus
- How to make an interface similar to multi-site for switching between multiple (single) sites for administrators?
- Post-terms-order PHP errors after update
- Call to undefined function get_userdata in user.php
- Only Homepage not loading properly
- Accidentally Broke Site (Please Help) [closed]
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- Images not showing after changing wp-content folder name
- WooCommerce Checkout Error [closed]
- qTranslate conflicts with SEO-plugins [closed]
- CSV file generation failing
- How to redirect a URL with parameters?
- Problem using Press-this book marklet
- Python with wordpress plugin
- Nonce failing on form submission
- Merging Two menus in the backend into one menu
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- WordPress site periodically goes down
- Deactivating all plugins and reactivating one by one, fixes conflicts. Why?
- Why do plugins deactivate by themselves?
- WordPress shows error related to allow_url_fopen
- AFNetworking incorrectly interpreted WP_Error
- Updated 4.3 Getting Error: Warning: call_user_func_array() expects parameter 1 to
- How to remove admin main menu name repetition
- How to exclude certain files from the plugin editor?
- Unable to get WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG to work
- Get errors from WP_Error to different variables
- Sync User to cPanel webmail?
- Getting a “Warning: call_user_func_array()” error whenever I install/update a plugin
- Why am I getting a “Call to undefined function curl_init()” when I try to use the Sociable plugin?
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- What’s causing this error? “Warning: Invalid argument”
- How do I add content to the dashboard in WordPress?
- help with my wordpress website
- WordPress error: Options page Setting_ not found in the allowed options list
- Remove specific plugins and themes from the Dashboard->Updates page [duplicate]
- HTTP 500 error after plugin install
- Can’t activate Plugin: unexpected T_STRING, expecting T_FUNCTION [closed]
- Login problem after installing my written plugin [closed]
- Allowed memory size exhausted problem
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- Plugin getting Cannot modify header information errors
- WP-nivo-slider Producing Error “Cannot modify header information – headers already sent by …”
- XML Sitemap Generator can’t notify google and bing
- Changing menu order of a specific plugin in dashboard
- After updating the WordPress getting a syntax error in the console
- I changed font of wordpress dashboard but it is slow!
- React error #231with Custom Blocks after upgrade to WP 5.5
- There has been a critical error on your website – won’t fix no matter what