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:
- How to export comments in WordPress?
- How can I call a function from one plugin within another plugin?
- Gutenberg disallow certain custom blocks but keep all core blocks?
- Publish author posts only with editor approval?
- Replacing Icons in the Dashboard
- Customizing subject in comment notification e-mails
- WP showing “warning: call_user_func_array()”, What to do?
- Declare a function before plugin does on the theme functions.php file
- Generate Advanced Custom Fields box in custom admin menu page
- Removing user contact methods works from functions.php but not from a plugin
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Use functionality of 2 wordpress plugins
- Fatal error: Class not found in
- What’s the point of using WordPress’s built in admin-ajax.php?
- How can i change an image’s author?
- Converting a simple plugin to be placed inside of functions.php
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Capitalize All Titles and Headlines in Chicago Style
- Showing Co-Authors on post page
- jQuery Plugin to use WordPress functions in AJAX request
- Using plugin functionality in external php script not working
- greatest() function returns undefined property
- Debugging Technique Question re: functions.php
- Override plugin with functions.php
- WP Job Manager Category Drop-down; Change Placeholder Text Via Filter
- How to include code into functions.php file via a plugin
- Custom Taxonomy Tag Search
- Missing argument 3 for wp_register_sidebar_widget()
- Redeclare theme’s function in a plugin
- I have functions in my wordpress plugin. How do I get them to work for me?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- Shortcode button dosent work for all posts. Work for first post only
- Is there a way I can find wordpress posts that don’t contain a word?
- Change wordpress current_time function to different timezone
- How to override a plugin function wrapped in a class?
- Edit Yoast SEO breadcrumbs output [closed]
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- Using a post-signup hook to get user details
- Restrict media upload size by format
- Show function to super admin
- Facebook Messager Plugin
- Grab WordPress Salt Data From URL
- Basics of changing plugin output
- Why can’t I call a (member) function from within a foreach?
- Add Content to Content()
- Are there action hooks for comments?
- Return multiple values in a shortcode attribute
- get specific value of a array | PHP
- plugin wraps the entire content
- Shortcode Attributes to Return different $_POST
- Plugin onclick button activate other plugin
- Activate and deactivate plugin automatically
- dynamic name of the style for wp_enqueue_style
- WordPress function to add text warning on every pages [closed]
- Call javascript functions from each page
- Add_image_size not generating correct size
- How can i call a functions.php function, from inside my plugin class?
- How to make WooCommerce payment method field optional?
- add_rewrite_rule to load different page, without changing URL in browser
- WordPress Custom Hook with Class method
- Allow a particular user to access a particular plugin?
- how to define a html folder to make it work with WordPress commands
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- ACF Fields are not showing up on Homepage
- Adding discount functionality to the cart
- Precheck fields when I add a new post
- Get Shortcode output to database for static post_content
- Securing langugae folder
- Call function with button and return response
- Change custom rewrite rule when permalink is updated/changed
- Return function results within shortcode
- Why is WP template_include overwritting all templates rather than specified page?
- How To Add Code To WP Without Plugin or Functions
- Building a Article Library within WP?
- Populate select option with JSON file
- How to Call Function From Separate WordPress Install on Same Server?
- Home page letters
- How to echo a plugin’s function into a template?
- Find all strings between an enclosing shortcode
- Wp Ecommerce Reposition Product Page Product Thumbnail Image
- It possible to implement an adhoc php web application with wordpress?
- How to Overwrite validate_plugin function
- making a glossary with wordpress
- date function not correctly returning date
- Disable plugin function
- Get content or excerpt of top rated votes @GD-Star Rating? [closed]
- Access to wordpress method inside of classes
- is ther a plugin that will hide/show content for a scheduled period of time? [closed]
- wordpress Search function is not working
- Adding a script & php to functions.php
- Override the plugin class and function
- Activate and deactivate two plugins automatically at certain hours
- PHP Creating a formula from mysql db values and db stored math operator
- Change page content based on dropdown selection
- 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?
- Gravity Forms and Gravity View Permissions
- 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