WordPress.org

Make WordPress Core

Changeset 45918


Ignore:
Timestamp:
08/30/2019 06:32:14 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Comments: In AJAX response when deleting a comment, account for   as a thousands separator in total_items_i18n and total_pages_i18n numbers.

Props denisco, SergeyBiryukov.
Fixes #47953.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/edit-comments.js

    r45567 r45918  
    657657                    total_items_i18n = response.supplemental.total_items_i18n || '';
    658658                    if ( total_items_i18n ) {
    659                         $('.displaying-num').text( total_items_i18n );
    660                         $('.total-pages').text( response.supplemental.total_pages_i18n );
     659                        $('.displaying-num').text( total_items_i18n.replace( ' ', String.fromCharCode( 160 ) ) );
     660                        $('.total-pages').text( response.supplemental.total_pages_i18n.replace( ' ', String.fromCharCode( 160 ) ) );
    661661                        $('.tablenav-pages').find('.next-page, .last-page').toggleClass('disabled', response.supplemental.total_pages == $('.current-page').val());
    662662                    }
Note: See TracChangeset for help on using the changeset viewer.