• Resolved chrispnw

    (@chrispnw)


    Hello,

    I’m in the process of setting up your forum and have ran into a weird problem.

    Under forum description in the forum settings, my chosen name has an apostrophe in it. Like John’s forum for example. But for whatever reason, on the actual forum, it shows John\’s Forum.

    Does anyone know why this is happening or how I can fix it?

    Thank you,

    -Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    Hi @chrispnw,

    Thank you for letting us know. The issue will be fixed in the next version release.

    If you need to solve the issue asap, please follow the steps below.

    1. Open the wpf-actions.php file in the wp-content/plugins/wpforo/wpf-includes/ folder

    2. Find the following two lines (441, 442):

    'title'         => sanitize_text_field( $_POST['wpforo_general_options']['title'] ),
    'description'   => sanitize_text_field( $_POST['wpforo_general_options']['description'] ),

    3. Replace with the following one:

    'title'         => sanitize_text_field( stripslashes($_POST['wpforo_general_options']['title']) ),
    'description'   => sanitize_text_field( stripslashes($_POST['wpforo_general_options']['description']) ),

    4. Navigate to Dashboard > Settings > General admin page and just click on the “Update Options” button

    5. Delete all caches and check again.

    stripslashes

    Plugin Author gVectors Team

    (@gvectors-team)

    This is fixed in just released 1.6.5 version.

    Thread Starter chrispnw

    (@chrispnw)

    Wow, that was quick! Thank you so much!

    -Chris

    • This reply was modified 6 years, 8 months ago by chrispnw.
    • This reply was modified 6 years, 8 months ago by chrispnw.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Backslash appears before apostrophe’ is closed to new replies.