Changeset 25634
- Timestamp:
- 09/28/2013 04:17:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r25566 r25634 204 204 $to_send = compact( 'plugins', 'active' ); 205 205 206 /** 207 * Filter the locales requested for plugin translations. 208 * 209 * @since 3.7.0 210 * 211 * @param array $locales Defaults to the current locale of the site. 212 */ 213 $locales = apply_filters( 'plugins_update_check_locales', array( get_locale() ) ); 214 206 215 $options = array( 207 216 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), … … 209 218 'plugins' => json_encode( $to_send ), 210 219 'translations' => json_encode( $translations ), 211 'locale' => json_encode( array( get_locale() ) ), // @todo filter.220 'locale' => json_encode( $locales ), 212 221 ), 213 222 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) … … 330 339 $request['themes'] = $themes; 331 340 341 /** 342 * Filter the locales requested for theme translations. 343 * 344 * @since 3.7.0 345 * 346 * @param array $locales Defaults to the current locale of the site. 347 */ 348 $locales = apply_filters( 'themes_update_check_locales', array( get_locale() ) ); 349 332 350 $options = array( 333 351 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), … … 335 353 'themes' => json_encode( $request ), 336 354 'translations' => json_encode( $translations ), 337 'locale' => json_encode( array( get_locale() ) ), // @todo filter.355 'locale' => json_encode( $locales ), 338 356 ), 339 357 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
Note: See TracChangeset
for help on using the changeset viewer.