WordPress.org

Making WordPress.org

Changeset 7896


Ignore:
Timestamp:
11/26/2018 03:56:36 AM (21 months ago)
Author:
dd32
Message:

Main: Don't display WordPress 5.2 in the stats graphs.

Fixes #3956.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/js/page-stats.js

    r6654 r7896  
    55
    66    window.drawWpVersionsGraph = function( data ) {
     7
    78        // Remove trunk from display.
    8         delete data[ wporgPageStats.trunk ];
    9         delete data[ wporgPageStats.beta ];
     9        for ( var version in data ) {
     10            if ( parseFloat( version ) >= parseFloat( wporgPageStats.trunk ) ) {
     11                delete data[ version ];
     12            }
     13        }
    1014
    1115        drawGraph( data, 'wp_versions', wporgPageStats.wpVersions, 'Version', 'versions' );
Note: See TracChangeset for help on using the changeset viewer.