Making WordPress.org


Ignore:
Timestamp:
09/07/2019 09:12:14 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Use locale's default date format when displaying a date for reviews.

Hardcoded F j, Y is not suitable for locales using a different format.

See #3717.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php

    r9118 r9127  
    310310                    __( 'By %1$s on %2$s', 'wporg-plugins' ),
    311311                    $review_author_markup,
    312                     '<span class="review-date">' . gmdate( 'F j, Y', strtotime( $review->post_modified ) ) . '</span>'
     312                    '<span class="review-date">' . date_i18n( get_option( 'date_format' ), strtotime( $review->post_modified ) ) . '</span>'
    313313                );
    314314                ?>
Note: See TracChangeset for help on using the changeset viewer.