WordPress.org

Making WordPress.org

Changeset 6151


Ignore:
Timestamp:
11/20/2017 08:35:14 PM (8 months ago)
Author:
coffee2code
Message:

developer.wordpress.org: Fix generation of current version term slug from current version string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r5894 r6151  
    388388
    389389        if ( $ignore_minor ) {
    390             $version_parts = explode( '-', $current_version, 3 );
     390            $version_parts = explode( '.', $current_version, 3 );
    391391            if ( count( $version_parts ) == 2 ) {
    392392                $version_parts[] = '0';
     
    394394                $version_parts[2] = '0';
    395395            }
    396             $current_version = implode( '.', $version_parts );
     396            $current_version = implode( '-', $version_parts );
    397397        }
    398398
Note: See TracChangeset for help on using the changeset viewer.