Changeset 1870
- Timestamp:
- 09/11/2015 04:48:04 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-log-warnings-to-slack.php
r1869 r1870 9 9 10 10 var $channel = '#polyglots-warnings'; 11 12 // Holds the list of Translation ID's which have been notified about in this process 13 var $warned = array(); 11 14 12 15 function __construct() { … … 58 61 */ 59 62 function process_translation_warning( $translation ) { 63 // Avoid processing a specific translation twice 64 if ( isset( $this->warned[ $translation->id ] ) ) { 65 return; 66 } 67 $this->warned[ $translation->id ] = true; 68 69 60 70 $original = GP::$original->get( $translation->original_id ); 61 71 $set = GP::$translation_set->get( $translation->translation_set_id );
Note: See TracChangeset
for help on using the changeset viewer.