Skip to content

General

General Tech Information, How-To’s, Tips, Tools, and Guides

WordPress Double Dash Issue

  • General

Removing Code to Enable Double Dashes in WordPress

WordPress, by default, changes the code you place into posts and merges items like “–” into “-” so articles don’t show properly. To fix this error do the following:

Modify your site’s wp-includes/formatting.php file

***Make a Backup Copy of this file before you modify it, so you can roll back if it doesnt work***

Remove the following lines:

// Dashes and spaces
$dynamic[‘/—/’] = $em_dash;
$dynamic[ ‘/(?<=^|’ . $spaces . ‘)–(?=$|’ . $spaces . ‘)/’ ] = $em_dash;
$dynamic[‘/(?<!xn)–/’] = $en_dash;
$dynamic[ ‘/(?<=^|’ . $spaces . ‘)-(?=$|’ . $spaces . ‘)/’ ] = $en_dash;
$dynamic_characters[‘dash’] = array_keys( $dynamic );
$dynamic_replacements[‘dash’] = array_values( $dynamic );

Save the file

Now browse to the pages on your website and refresh the page/pages that had the issue. You should now see the Double Dash “–“

Remove Duplicate Files Named “_conflict” in OwnCloud

  • General

Remove Files and Regain Space in OwnCloud

This is a quick how to on removing all of you “_conflict” files all at once

On the OwnCloud server open up a terminal

Type:
sudo bash

Enter your password

Type
cd /

Type
find ./* -name *_conflict*
this will list all of the files

find ./* -name *_conflict* -delete
this will delete all of the files

Thats it!

Thank you

  • General

Hi All

Thanks for checking out TacticalWare.com.  Here I will be posting multitudes of information on Crypto, Mining, Linux, Power BI, and other topics that interest me.  Looking forward to building a resource for all to use.