Making WordPress.org


Ignore:
Timestamp:
12/02/2016 03:48:57 AM (8 years ago)
Author:
tellyworth
Message:

Plugin directory: fix some minor regressions in API output.

See #2112

File:
1 edited

Legend:

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

    r4311 r4458  
    9898        $result['support_threads_resolved'] = get_post_meta( $post_id, 'support_threads_resolved', true ) ?: 0;
    9999        $result['active_installs'] = (int)get_post_meta( $post_id, 'active_installs', true );
    100         $result['downloaded'] = get_post_meta( $post_id, 'downloads', true );
    101         $result['last_updated'] = gmdate( 'Y-m-d', strtotime( $post->post_modified_gmt ) );
     100        $result['downloaded'] = intval( get_post_meta( $post_id, 'downloads', true ) );
     101        $result['last_updated'] = gmdate( 'Y-m-d g:ia \G\M\T', strtotime( $post->post_modified_gmt ) );
    102102        $result['added'] = gmdate( 'Y-m-d', strtotime( $post->post_date_gmt ) );
    103103        $result['homepage'] = get_post_meta( $post_id, 'header_plugin_uri', true );
Note: See TracChangeset for help on using the changeset viewer.