| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | * Return the report title |
| 24 | 24 | * |
| 25 | 25 | * @return string |
| 26 | 26 | */ |
| 27 | - public function get_title() : string { | |
| 27 | + public function get_title(): string { | |
| 28 | 28 | return __( 'ElasticPress', 'elasticpress' ); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | * Return the report fields |
| 33 | 33 | * |
| 34 | 34 | * @return array |
| 35 | 35 | */ |
| 36 | - public function get_groups() : array { | |
| 36 | + public function get_groups(): array { | |
| 37 | 37 | return [ |
| 38 | 38 | $this->get_basic_settings(), |
| 39 | 39 | $this->get_timeouts(), |
| 40 | 40 | ]; |
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | * Process ElasticPress's basic settings. |
| 45 | 45 | * |
| 46 | 46 | * @return array |
| 47 | 47 | */ |
| 48 | - protected function get_basic_settings() : array { | |
| 48 | + protected function get_basic_settings(): array { | |
| 49 | 49 | $is_epio = Utils\is_epio(); |
| 50 | 50 | |
| 51 | 51 | $fields = []; |
| 52 | 52 | |
| @@ -86,23 +86,13 @@ | ||
| 86 | 86 | * |
| 87 | 87 | * @return array |
| 88 | 88 | */ |
| 89 | 89 | protected function get_timeouts() { |
| 90 | - $default_request_timeout = 5; | |
| 91 | - $fields['request_timeout'] = [ | |
| 92 | - 'label' => sprintf( | |
| 93 | - /* translators: default time */ | |
| 94 | - __( 'Default Requests Timeout (default: %s)', 'elasticpress' ), | |
| 95 | - $default_request_timeout | |
| 96 | - ), | |
| 97 | - 'value' => apply_filters( 'http_request_timeout', $default_request_timeout, Utils\get_host() ), | |
| 98 | - ]; | |
| 99 | - | |
| 100 | 90 | $default_index_document_timeout = 15; |
| 101 | 91 | $fields['index_document_timeout'] = [ |
| 102 | 92 | 'label' => sprintf( |
| 103 | 93 | /* translators: default time */ |
| 104 | - __( 'Index Document Request Timeout (default: %s)', 'elasticpress' ), | |
| 94 | + __( 'Single Document Sync Requests Timeout (default: %s)', 'elasticpress' ), | |
| 105 | 95 | $default_index_document_timeout |
| 106 | 96 | ), |
| 107 | 97 | 'value' => apply_filters( 'ep_index_document_timeout', $default_index_document_timeout ), |
| 108 | 98 | ]; |
| @@ -110,12 +100,22 @@ | ||
| 110 | 100 | $default_bulk_request_timeout = 30; |
| 111 | 101 | $fields['bulk_request_timeout'] = [ |
| 112 | 102 | 'label' => sprintf( |
| 113 | 103 | /* translators: default time */ |
| 114 | - __( 'Default Requests Timeout (default: %s)', 'elasticpress' ), | |
| 104 | + __( 'Multiple Document Sync Requests Timeout (default: %s)', 'elasticpress' ), | |
| 115 | 105 | $default_bulk_request_timeout |
| 116 | 106 | ), |
| 117 | 107 | 'value' => apply_filters( 'bulk_request_timeout', $default_bulk_request_timeout ), |
| 108 | + ]; | |
| 109 | + | |
| 110 | + $default_request_timeout = 5; | |
| 111 | + $fields['request_timeout'] = [ | |
| 112 | + 'label' => sprintf( | |
| 113 | + /* translators: default time */ | |
| 114 | + __( 'Other HTTP Requests Timeout (default: %s)', 'elasticpress' ), | |
| 115 | + $default_request_timeout | |
| 116 | + ), | |
| 117 | + 'value' => apply_filters( 'http_request_timeout', $default_request_timeout, Utils\get_host() ), | |
| 118 | 118 | ]; |
| 119 | 119 | |
| 120 | 120 | return [ |
| 121 | 121 | 'title' => __( 'Timeouts', 'elasticpress' ), |