• Resolved pcoral

    (@pcoral)


    Hi there. thank you for your great plugin.
    In admin section in right to left webpag, you cannot rate more than 2.5. the starts doesn’t fill correctly it only goes as far as 2.5, althoug it is working correctly at front side.
    I digged to the code and I realized that in yet-another-stars-rating/lib/yasr-functions.php file at function yasr_add_admin_scripts you have forgotten to add a correct file (i.e. rater-js-rtl.js) for right to left web page.(line 105)
    Therefore I change the line 105 from:

    wp_enqueue_script('rater', YASR_JS_DIR . 'rater-js.js', '', YASR_VERSION_NUM, true);

    to:

    $rater_file_to_include = 'rater-js.js';
       	 if (is_rtl()) {
    	        $rater_file_to_include = 'rater-js-rtl.js';
    	 }
            wp_enqueue_script('rater', YASR_JS_DIR . $rater_file_to_include, '', YASR_VERSION_NUM, true);

    Now it is working in admin section for right to left (rtl) website as well.
    I hope you can fix it in your next update.

Viewing 1 replies (of 1 total)
  • Plugin Contributor dudo

    (@dudo)

    Thank you for sharing this!

    Fix will be availble in te next version

    Best,
    Dario

Viewing 1 replies (of 1 total)
  • The topic ‘In rtl websites admin section you can not rate more than 2.5’ is closed to new replies.