- Timestamp:
- 12/06/2016 06:12:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/credits/wp-credits.php
r4489 r4490 143 143 $path = 'wp/' . $path; 144 144 145 $locale = $gp_locale->slug; 145 $locale_parts = explode( '/', $gp_locale->slug ); 146 $locale = $locale_parts[0]; 147 $slug = isset( $locale_parts[1] ) ? $locale_parts[1] : 'default'; 146 148 147 149 $path = $wpdb->escape( like_escape( $path ) . '%' ); 148 150 $locale = $wpdb->escape( $locale ); 151 $slug = $wpdb->escape( $slug ); 149 152 150 153 $date = $wpdb->prepare( "AND tt.date_added > %s", $this->get_start_date() ); … … 160 163 WHERE tp.path LIKE '$path' 161 164 AND tts.locale = '$locale' 162 AND tts.slug = ' default'165 AND tts.slug = '$slug' 163 166 AND ( tt.status = 'current' || tt.status = 'old' ) 164 167 AND tt.user_id IS NOT NULL … … 220 223 $project_ids[] = '0'; // Global validators 221 224 225 $locale_parts = explode( '/', $gp_locale->slug ); 226 $locale = $locale_parts[0]; 227 222 228 return $wpdb->get_col( $wpdb->prepare( " 223 229 SELECT `user_id` FROM `translate_translation_editors` 224 230 WHERE `project_id` IN (" . implode( ', ', $project_ids ) . ") AND `locale` = %s 225 ", $ gp_locale->slug) );231 ", $locale ) ); 226 232 } 227 233
Note: See TracChangeset
for help on using the changeset viewer.