Making WordPress.org


Ignore:
Timestamp:
01/28/2019 07:45:42 PM (8 years ago)
Author:
ocean90
Message:

Translate: Use the ts field for timestamps in Slack notifications.

Fixes #4057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-theme-directory/inc/class-plugin.php

    r4091 r8156  
    6565         */
    6666        public function import_or_update_theme_on_status_change( $args ) {
    67                 $time = date( 'r' );
    68                 $message = "_Time: {$time}_\nImport of theme {$args['theme']} {$args['version']} in process...\n";
     67                $timestamp = time();
     68                $message   = '';
    6969
    7070                // Import in a separate process.
    … …  
    8787                        'color'      => '#82878c',
    8888                        'mrkdwn_in'  => [ 'text' ],
     89                        'ts'         => $timestamp,
    8990                ];
    9091                $this->slack( $attachment );
Note: See TracChangeset for help on using the changeset viewer.