Changeset 4458 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php
- Timestamp:
- 12/02/2016 03:48:57 AM (8 years ago)
- 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 98 98 $result['support_threads_resolved'] = get_post_meta( $post_id, 'support_threads_resolved', true ) ?: 0; 99 99 $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 ) ); 102 102 $result['added'] = gmdate( 'Y-m-d', strtotime( $post->post_date_gmt ) ); 103 103 $result['homepage'] = get_post_meta( $post_id, 'header_plugin_uri', true );
Note: See TracChangeset
for help on using the changeset viewer.