It’s lines 396 – 398 in the smart youtube plugin’s smartyoutube.class.php file:
function check($the_content, $side = 0)
{
if (strpos($the_content, "httpv") !== false )
{
$char_codes = array('×', '–'); // <-- 8211 is an en dash
$replacements = array("x", "--"); // <-- here's where it's swapping in --
$the_content = str_replace($char_codes, $replacements, $the_content); // <--
Related Posts:
- Disable plugin / plugin action via theme
- How do I replace a function, declared inside a plugin’s class, in functions.php?
- Shared functionality in plugins and themes
- Prevent publishing the post before setting a featured image?
- How to Loop Plugin Option Field Set?
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Adding New Role
- How to load plugin before the wordpress jquery?
- Disabling post images for not logged in users
- Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges
- HELP: Integrating WP with raw PHP code once published button is hit
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- bulk change of image setting “link to” to “link to: image url “
- Placement of Code in Plugin for hooking `save_post`
- Limit the number of plugins that can be installed in a WordPress installation
- Add get_option to jquery
- How to get variables from fucntion.php to my plugin files
- Can we use a webservice with WordPress?
- Executing my function once on a specific time
- How to stop or remove an action being called inside a function of an extended class
- Adding Shortcode to Text Widget
- Date calculations from 2 custom fields
- Using a function to change favorites listing
- How to debug error message: Cannot modify header information
- How to enable specific plugin only based around shop manager role?
- Adding a new field to the address field type in gravity forms
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- How to set Noindex to all wordpress pages in a catergory?
- Load Javascript from Plugin in One Page Only?
- Checking the count within a foreach loop
- How to keep variable `$post` to using in another file
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- Why are my WordPress store items showing up in duplicates?
- wp_dequeue_script for a Plugin
- Need to replace Currency Shortforms
- wc_get_template new template does not showing up
- Overriding an Array in a Plugin’s Class/Function from functions.php
- Change Header (Logo) Based on Login
- How can i list random author?
- Is there existing plugins to “Click-to-Launch” embedded Flash / SWF content?
- Can you echo PHP code from a variable?
- Plugin for visitors to edit content without logging in? [closed]
- Defining the value of a variable before a function?
- How to get custom minimum price in Woocommerce
- Restrict posts to customers with complete WooCommerce orders only
- Dynamic URL Rewrite for Custom
- how to validate input field in wordpress generated with wpform plugin
- implement custom roles in custom plugin
- How to get current cart values using WC_Shortcodes?
- Error using wordpress functions inside a plugin class
- Multisite – Cloning CPT pages + content (including ACF Flexible Content) from site to site
- WordPress default post categories meta box widget
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- Share my WordPress plugin for updating how?
- The function called on the wp head hook becomes null
- Submitting form to PHP
- How can I add a custom Javascript snippet to display my feedback in footer?
- How to detect 404 url and make this link underline or change background color?
- Make modification of add_to_cart button specific to single page
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- How can I change page content for good once a button is pressed?
- working code, not working – Plugin Dev
- How use get_plugin_updates() function?
- how override a define
- how can export data in excel file custom plugin
- How to Unhook actions/filters in within Class in plugin
- How to disable/enable a plugin at a specific time
- WP_CRON issue with UTC and local time
- Configuring default woo commerce login with modal popup
- Dynamically Modify s2member Options
- register_activation_hook doesn’t fire at all
- My ajax request don´t work and return 0
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- How to delete posts older than one year with post meta, post attachments and files?
- how to repeat taxonomy in different places on wordpress
- custom template only for content
- Create csv file in plugin
- Load wordpress enviroment for external content?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- How do add_action and WP_Query
- How to structure plugin in to functions?
- Add a filter to a different custom plugin
- Move related products after product summary? [closed]
- How to tweak a plugin without preventing it from updating
- WP Members additional fields on user profile [closed]
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Woocommerce disable checkout on specific day
- Display Video as Post Thumbnail
- Notifications Bar on home page only
- Distribute post content through several divs [closed]
- How to Add Extra Text In WordPress Title Before Post Publish
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- WordPress Convert queries to slashes using function.php
- Run a function only once when logging into dashboard
- add to cart linking to add to cart page