WordPress.org

Making WordPress.org

Changeset 5580


Ignore:
Timestamp:
06/15/2017 11:05:54 PM (11 months ago)
Author:
coffee2code
Message:

developer.wordpress.org: Get current version term by slug instead of name.

File:
1 edited

Legend:

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

    r5433 r5580  
    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';
     
    400400            'number' => '1',
    401401            'order'  => 'DESC',
    402             'name'   => $current_version,
     402            'slug'   => $current_version,
    403403        ) );
    404404
Note: See TracChangeset for help on using the changeset viewer.