WordPress.org

Making WordPress.org

Changeset 2835


Ignore:
Timestamp:
03/28/2016 09:00:34 PM (3 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Display status names in log instead of slugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r2832 r2835  
    649649     */
    650650    public function log_status_changes( $new_status, $old_status, $post ) {
     651        $statues = WordCamp_Loader::get_post_statuses();
     652
    651653        if ( $new_status === $old_status ) {
    652654            return;
     
    660662            'timestamp' => time(),
    661663            'user_id'   => get_current_user_id(),
    662             'message'   => sprintf( '%s -> %s', $old_status, $new_status ), /// todo use get_status_name() when it's ready
     664            'message'   => sprintf( '%s -> %s', $statues[ $old_status ], $statues[ $new_status ] ),
    663665        ) );
    664666    }
Note: See TracChangeset for help on using the changeset viewer.