stripslash in "subscribtion" buton bp community

yup !

A wonderfull stripsals on this option :slight_smile:

where is it to solve that ? (subscription text area/button)

  • DavidM
    • DEV MAN’s Mascot

    Hiya Aphrodite!

    Thanks for pointing that one out! I'll let the developers know but for a quick fix you can use the following.

    You can replace line 1274 of functions.php with the following:
    <p><input name="<?php echo $value['id']; ?>" class="myfield" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id'] )); } else { echo $value['std']; } ?>" /></p>

    And of course, it's merely adding in the stripslashes before the actual value. The value output on the front-end already had stripslashes applied to it so this only affects the back-end option.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.