Changeset 9891
- Timestamp:
- 05/19/2020 09:22:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-custom-stats/stats/warning.php
r9890 r9891 34 34 $translation_set = GP::$translation_set->get( $translation->translation_set_id ); 35 35 36 $key = "{$translation->user_id},{$translation_set->locale},{$translation_set->slug},{$project->path},{$translation->id}";37 38 36 foreach( $translation->warnings as $index => $warnings ) { 39 37 foreach ( $warnings as $warning_key => $warning ) { 40 $this->warning_stats[ $key ] = $warning_key; 38 $key = "{$translation->user_id},{$translation_set->locale},{$translation_set->slug},{$project->path},{$translation->id},{$warning_key}"; 39 40 $this->warning_stats[ $key ] = 1; 41 41 } 42 42 } … … 50 50 51 51 $values = array(); 52 foreach ( $this->warning_stats as $key => $ warning) {53 list( $user_id, $locale, $locale_slug, $project_path, $translation_id ) = explode( ',', $key );52 foreach ( $this->warning_stats as $key => $_ ) { 53 list( $user_id, $locale, $locale_slug, $project_path, $translation_id, $warning ) = explode( ',', $key ); 54 54 55 55 $values[] = $wpdb->prepare( '(%d, %s, %s, %s, %d, %s, %s)',
Note: See TracChangeset
for help on using the changeset viewer.