Making WordPress.org

Changeset 3021


Ignore:
Timestamp:
04/27/2016 08:23:46 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Correct a typo in [3020] and include trunk in the versions listing.

See #1576

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php

    r3020 r3021  
    123123        $result['versions'] = array();
    124124        if ( $versions = get_post_meta( $post_id, 'tagged_versions', true ) ) {
     125            if ( 'trunk' != $result['stable_tag'] ) {
     126                array_push( $versions, 'trunk' );
     127            }
    125128            foreach ( $versions as $version ) {
    126129                $result['versions'][ $version ] = Template::download_link( $post, $version );
     
    132135        $result['banners'] = array();
    133136        if ( $banners = Template::get_plugin_banner( $post ) ) {
    134             if ( isset( $banners['baner'] ) ) {
     137            if ( isset( $banners['banner'] ) ) {
    135138                $result['banners']['low'] = $banners['banner'];
    136139            }
Note: See TracChangeset for help on using the changeset viewer.