WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/20/17 20:35:14 (4 weeks 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.