Making WordPress.org

Changeset 2937


Ignore:
Timestamp:
04/12/2016 08:53:31 PM (9 years ago)
Author:
coffee2code
Message:

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

File:
1 edited

Legend:

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

    r2817 r2937  
    326326                $version_parts[2] = '0';
    327327            }
    328             $current_version = implode( '-', $version_parts );
     328            $current_version = implode( '.', $version_parts );
    329329        }
    330330
     
    332332            'number' => '1',
    333333            'order'  => 'DESC',
    334             'slug'   => $current_version,
     334            'name'   => $current_version,
    335335        ) );
    336336
Note: See TracChangeset for help on using the changeset viewer.