Making WordPress.org


Ignore:
Timestamp:
12/17/2018 07:34:12 AM (5 years ago)
Author:
vedjain
Message:

WCPT Application Tracker: Multiple changes in rendering of application status report, see desc.

  1. Add customRender option to allow specifying different render logic in application tracker report.
  2. Send timestamp for lastUpdated column instead of humanize_time_diff. Move logic for humanize_time_diff to frontend, because its a very simple logic, and would make a easy fix for #2501
  3. Use customRender option to display X time ago instead of absolute timestamp.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/tracker.php

    r7841 r7976  
    1515 */
    1616function render_status_shortcode() {
    17     return '<div id="wpc-application-tracker">Loading Application Tracker...</div>';
     17    return '<div id="wpc-application-tracker">Loading WordCamp Application Tracker...</div>';
    1818}
    1919
     
    7070            'milestone'  => $milestones[ $post->post_status ],
    7171            'status'     => $statuses[ $post->post_status ],
    72             'lastUpdate' => human_time_diff( time(), $last_update_timestamp ) . ' ago',
     72            'lastUpdate' => $last_update_timestamp,
    7373        );
    7474    }
Note: See TracChangeset for help on using the changeset viewer.