Fix: Plus sign was not shown correctly after escaped function

This commit is contained in:
savvasha
2021-11-07 10:23:07 +02:00
parent 8fe70b29bc
commit 05e7a9c40e

View File

@@ -537,7 +537,7 @@ if ( !function_exists( 'sp_get_post_equation' ) ) {
if ( $equation ):
$equation = str_replace(
array( '/', '(', ')', '+', '-', '*', '_', '$' ),
array( '÷', '(', ')', '+', '−', '×', '@', '' ),
array( '÷', '(', ')', '+', '−', '×', '@', '' ),
trim( $equation )
);
return '<code>' . implode( '</code> <code>', explode( ' ', $equation ) ) . '</code>';