Support » Plugin: Manual Image Crop » JS error with French version

  • Hello,

    In french, crop button doesn’t appear because of JS error :

    Uncaught SyntaxError: missing ) after argument list

    See error here

    The problem is the single quote in the translation.

Viewing 1 replies (of 1 total)
  • @aand33

    It doesn’t look like this plugin is under active development/support – but this might help you.

    You’ll need to edit one of the PHP files in the plugin so that the translated text is escaped before it’s used in the JavaScript.

    FILE: manual-image-crop/lib/ManualImageCrop.php
    LINES: 94, 94, 104, 104, 131, 131

    Change all instances of

    _e

    TO

    esc_attr_e

    For example

    FROM

    _e('Crop Image','microp')

    TO

    esc_attr_e('Crop Image','microp')

Viewing 1 replies (of 1 total)
  • The topic ‘JS error with French version’ is closed to new replies.