Plugin Directory

Changeset 2061202


Ignore:
Timestamp:
04/01/2019 09:00:39 PM (7 years ago)
Author:
jeherve
Message:

Release version 1.2.0 of the plugin

https://github.com/jeherve/jp-post-views/releases/tag/1.2.0

Location:
post-views-for-jetpack/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • post-views-for-jetpack/trunk/functions.jp-post-views.php

    r1536318 r2061202  
    9696
    9797    if ( isset( $views ) && ! empty( $views ) ) {
    98         $view = sprintf( esc_html(
    99             _n(
    100                 '%d view',
    101                 '%d views',
    102                 $views['total'],
    103                 'jp-post-views'
    104             )
    105         ), $views['total'] );
     98        $view = sprintf(
     99            esc_html(
     100                _n(
     101                    '%s view',
     102                    '%s views',
     103                    $views['total'],
     104                    'jp-post-views'
     105                )
     106            ),
     107            number_format_i18n( $views['total'] )
     108        );
    106109    } else {
    107110        $view = esc_html__( 'no views', 'jp-post-views' );
  • post-views-for-jetpack/trunk/jp-post-views.php

    r1536318 r2061202  
    55 * Description: Display the number of views for each one of your posts, as recorded by Jetpack Stats.
    66 * Author: Jeremy Herve
    7  * Version: 1.1.0
     7 * Version: 1.2.0
    88 * Author URI: https://jeremy.hu
    99 * License: GPL2+
     
    1616defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    1717
    18 define( 'JPPOSTVIEWS__VERSION',    '1.0.0' );
     18define( 'JPPOSTVIEWS__VERSION',    '1.2.0' );
    1919define( 'JPPOSTVIEWS__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2020
  • post-views-for-jetpack/trunk/readme.txt

    r1626577 r2061202  
    22Contributors: jeherve
    33Tags: Stats, Views, Post Views, Jetpack
    4 Stable tag: 1.1.0
    5 Requires at least: 4.6
    6 Tested up to: 4.7
     4Stable tag: 1.2.0
     5Requires at least: 5.1
     6Tested up to: 5.2
    77
    88Display the number of views for each one of your posts, as recorded by Jetpack Stats.
     
    3131== Changelog ==
    3232
     33= 1.2.0 =
     34Release Date: April 2, 2019
     35
     36* Ensure the number of views is internationalized properly.
     37
    3338= 1.1.0 =
    3439Release Date: November 18, 2016
  • post-views-for-jetpack/trunk/widgets.jp-post-views.php

    r1536318 r2061202  
    8383
    8484            if ( isset( $views ) && ! empty( $views ) ) {
    85                 $stats_output = sprintf( esc_html(
    86                     _n(
    87                         '%d view',
    88                         '%d views',
    89                         $views['total'],
    90                         'jp-post-views'
    91                     )
    92                 ), $views['total'] );
     85                $stats_output = sprintf(
     86                    esc_html(
     87                        _n(
     88                            '%s view',
     89                            '%s views',
     90                            $views['total'],
     91                            'jp-post-views'
     92                        )
     93                    ),
     94                    number_format_i18n( $views['total'] )
     95                );
    9396            } else {
    9497                $stats_output = esc_html__( 'No views', 'jp-post-views' );
Note: See TracChangeset for help on using the changeset viewer.