When updating a post i get redirected to the site frist page

Viewed 28

This is bugging my mind for some time now.

I have created a wordpress plugin that required me to add a few additional editors in meta boxes at a custom post type using: wp_editor()

Everything works great except when i type some (not all) math equations and save the post i get redirected to the website's first page instead of updating the post...

math equations excample: 1,20 – 1,15 = 0,05€

in order to update and not redirect to the first page, i have to put empty spaces in between the numbers.

Why is this happening and how can i fix it ?

Thank you all for your time

$content = $field['question'];
$custom_editor_id = $custom_editor_name;
$custom_editor_name = $custom_editor_name;
$args = array(
 'media_buttons' => true, // This setting removes the media button.
 'textarea_name' => $custom_editor_name, // Set custom name.
 'textarea_rows' => get_option('default_post_edit_rows', 10), //Determine the number of rows.
 'tinymce' => true,
 'teeny' => true,
 'tinymce' => array(
 'toolbar1'      => 'bold,|,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink,undo,redo',
                                ),
 'quicktags' => false
   );
wp_editor( $content, 'question_'.$count.'_editor' , $args );

0 Answers
Related