• ResolvedPlugin Author myCred

    (@designbymerovingi)


    Issue:
    When using either ' or " in the message template, a notice will trigger an error and is not saved.

    Solution:
    Open the myCRED-addon-notifications.php file located in plugins/mycred/add-ons/notifications/ and make sure the following three lines are correct:

    On line 74 your code should be:

    foreach ( (array) $notices as $notice ) {

    On line 77 your code should be:

    echo '<script type="text/javascript">(function(jQuery){jQuery.noticeAdd({ text: "' . $notice . '",stay: ' . $stay . '});})(jQuery);</script>';

    And finally on 237 your code is:

    $notices[] = addslashes( $notice['message'] );

    https://www.ads-software.com/plugins/mycred/

Viewing 1 replies (of 1 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Also on line 153 your code should be:

    add_filter( 'mycred_notifications', create_function( '$query', '$query[]=\'' . $notice . '\'; return $query;' ) );
Viewing 1 replies (of 1 total)
  • The topic ‘Notifications Error’ is closed to new replies.