CustomPress: Some characters are converted in field descriptions

When creating new post type, taxonomies or custom fields, some characters are converted after saving.

" is converted with /"
' is converted with /'

Everytime I save, it adds a /

See attached file

Thanks

  • aecnu

    Greetings visitonweb,

    Even though you now have Magic Quotes turned off now is my opinion that future posts will be alright, however current and past posts are not affected because the problem characters have already been committed to the database.

    Therefore with posts pre-magic quotes off will need to be cleaned up manually in the database.

    Please confirm and advise us that new posts no longer contain these anomalous characters.

    Cheers, Joe

  • Dimitri

    Hello,
    Sorry but your solution do not work :slight_frown:

    If I remove the slashes manually in the database, all my custom fields desapear in custompress.

    I tried to add a new custom field and the slashes continue to be added automatically in the description.

    You will see below te content of wp_sitemeta table with my custom fields data
    a:18:{s:18:"text_4f58d3ae35d1d";a:8:{s:11:"field_title";s:10:"Code Boost";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:24:"Code Boost de l\'élève";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d3ae35d1d";}s:18:"text_4f58d5f9314ba";a:8:{s:11:"field_title";s:3:"Nom";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:17:"Nom de l\'élève";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d5f9314ba";}s:18:"text_4f58d6192de34";a:8:{s:11:"field_title";s:7:"Prénom";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:21:"Prénom de l\'élève";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d6192de34";}s:18:"text_4f58d65008f22";a:8:{s:11:"field_title";s:17:"Date de naissance";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:31:"Date de naissance de l\'élève";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d65008f22";}s:18:"text_4f58d68fb2de9";a:8:{s:11:"field_title";s:3:"Rue";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:3:"Rue";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d68fb2de9";}s:18:"text_4f58d6b28bdd4";a:8:{s:11:"field_title";s:9:"Nr de rue";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:27:"Nr de la maison dans la rue";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d6b28bdd4";}s:18:"text_4f58d6d62d143";a:8:{s:11:"field_title";s:11:"Code postal";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:11:"Code postal";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d6d62d143";}s:23:"selectbox_4f58d710001ad";a:9:{s:11:"field_title";s:4:"Pays";s:14:"field_wp_allow";i:0;s:10:"field_type";s:9:"selectbox";s:16:"field_sort_order";s:7:"default";s:13:"field_options";a:1:{i:1;s:8:"Belgique";}s:20:"field_default_option";s:1:"1";s:17:"field_description";s:4:"Pays";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:23:"selectbox_4f58d710001ad";}s:18:"text_4f58d743769e0";a:8:{s:11:"field_title";s:18:"Téléphone Mobile";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:9:"Nr de GSM";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d743769e0";}s:18:"text_4f58d760c1cca";a:8:{s:11:"field_title";s:18:"Téléphone maison";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:22:"Nr de téléphone fixe";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d760c1cca";}s:18:"text_4f58d7e600289";a:8:{s:11:"field_title";s:5:"Email";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:13:"adresse email";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d7e600289";}s:19:"radio_4f58d81eb26ba";a:9:{s:11:"field_title";s:6:"Langue";s:14:"field_wp_allow";i:0;s:10:"field_type";s:5:"radio";s:16:"field_sort_order";s:7:"default";s:13:"field_options";a:2:{i:1;s:11:"Francophone";i:2;s:16:"Néérlandophone";}s:20:"field_default_option";s:1:"1";s:17:"field_description";s:6:"Langue";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:19:"radio_4f58d81eb26ba";}s:19:"radio_4f58d87a6b21b";a:9:{s:11:"field_title";s:4:"Sexe";s:14:"field_wp_allow";i:0;s:10:"field_type";s:5:"radio";s:16:"field_sort_order";s:7:"default";s:13:"field_options";a:2:{i:1;s:8:"Masculin";i:2;s:8:"Féminin";}s:20:"field_default_option";s:1:"1";s:17:"field_description";s:18:"Sexe de l\'élève";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:19:"radio_4f58d87a6b21b";}s:18:"text_4f58d8e41c07a";a:8:{s:11:"field_title";s:6:"Source";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:74:"Qui a inscit l\'élève à Boost (Père, éducateur, prof de ...,etc...) ?";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d8e41c07a";}s:18:"text_4f58d92d134ac";a:8:{s:11:"field_title";s:7:"Parrain";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:31:"Parrain \"Boost\" de l\'élève";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d92d134ac";}s:18:"text_4f58d94a1da2e";a:8:{s:11:"field_title";s:16:"Compte banquaire";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:26:"Nr de compte de l\'élève";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58d94a1da2e";}s:18:"text_4f58ebc862093";a:8:{s:11:"field_title";s:9:"url photo";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:41:"Insérez ici l\'url complète de sa photo";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f58ebc862093";}s:18:"text_4f7407ffd7a75";a:8:{s:11:"field_title";s:4:"test";s:14:"field_wp_allow";i:0;s:10:"field_type";s:4:"text";s:16:"field_sort_order";s:7:"default";s:20:"field_default_option";N;s:17:"field_description";s:18:"test de l\'élève";s:11:"object_type";a:1:{i:0;s:6:"eleves";}s:8:"field_id";s:18:"text_4f7407ffd7a75";}}

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.