Making WordPress.org

Changeset 11356


Ignore:
Timestamp:
12/06/2021 05:56:05 AM (3 years ago)
Author:
dd32
Message:

WordPress.org Learn: sync with GitHub

https://github.com/WordPress/learn/compare/4b476da0d46f52c39505379eeb202561bf0d37db...c8bc07a8bcf34210fc2908495cdc94199213533b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/locale.php

    r10880 r11356  
    4040    $gp_api           = 'https://translate.wordpress.org';
    4141    $gp_project       = 'meta/learn-wordpress';
    42     $set_response     = wp_remote_get( "$gp_api/api/projects/$gp_project" );
     42    $set_response     = wp_remote_get(
     43        "$gp_api/api/projects/$gp_project",
     44        array(
     45            'timeout' => 30,
     46        )
     47    );
    4348    $body             = json_decode( wp_remote_retrieve_body( $set_response ) );
    4449    $translation_sets = isset( $body->translation_sets ) ? $body->translation_sets : false;
Note: See TracChangeset for help on using the changeset viewer.