Backslash character added in titles

  • Griswold
  • Topic Author

Backslash character added in titles was created by Griswold

We are creating playlists of audio files on a wordpress site. When entering a title in media management, typing an apostrophe or quotation mark results in an additional backslash being added just ahead of the character. How can I eliminate the extraneous backslash?
9 years 11 months ago #175

Please Log in or Create an account to join the conversation.

Replied by Administrator on topic Backslash character added in titles

Apologies. This is a known issue. Kindly get me your Server FTP access for /wp-content/plugins/yendif-player/. So, I can apply the solution directly.
9 years 11 months ago #177

Please Log in or Create an account to join the conversation.

  • mowse.ink

Replied by mowse.ink on topic Backslash character added in titles

Can you just post the solution?...I'm comfortable editing files.

If this is not going to be fixed on the next update, will you please post a way to create a permanent fix in my child theme folder?...so I don't lose the fix?

Thanks.
—j
9 years 7 months ago #435

Please Log in or Create an account to join the conversation.

  • mowse.ink

Replied by mowse.ink on topic Backslash character added in titles

I solved this issue by putting this code in my functions.php file:

<?php
if ( get_magic_quotes_gpc() ) {
$_POST = array_map( 'stripslashes_deep', $_POST );
$_GET = array_map( 'stripslashes_deep', $_GET );
$_COOKIE = array_map( 'stripslashes_deep', $_COOKIE );
$_REQUEST = array_map( 'stripslashes_deep', $_REQUEST );
}
?>

It won't fix things that were added previously, but it will fix future uses of an apostrophe. I had to edit the previously added instances to fix the problem, and now there's no more backslashes.
Last edit: 9 years 7 months ago by Administrator.
9 years 7 months ago #436

Please Log in or Create an account to join the conversation.

Time to create page: 0.047 seconds

Business Address

PLUGINSWARE INTERACTIVE PVT LTD
Door No 2A, Venkateshwara Nagar,
1st Main Road, Velachery, Chennai,
Tamilnadu, India
Pincode: 600042
© 2013 - 2024 Pluginsware Interactive Private Limited. All Rights Reserved. The Joomla! name and logo is used under a limited license granted in the United States and other countries.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.