PluginProbe
Social Media Auto Poster – Schedule & Publish to Buffer / 6.2.7
Social Media Auto Poster – Schedule & Publish to Buffer v6.2.7
6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.2 6.1.1 6.1.0 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 3.8.1 3.8.2 3.8.3 3.8.4 All 128 releases
← All changes | includes/class-buffer-api.php +7 -3 6.2.5 → 6.2.7 View file →
@@ -1232,18 +1232,22 @@
1232 1232 * @return int Timeout, in seconds.
1233 1233 */
1234 1234 private function get_timeout() {
1235 1235
1236 - $timeout = 10;
1236 + // Buffer's createPost can take longer than 10 seconds when fetching images.
1237 + $timeout = 30;
1237 1238
1238 1239 /**
1239 1240 * Defines the maximum time to allow the API request to run.
1240 1241 *
1241 - * @since 1.0.0
1242 + * @since 6.2.6
1242 1243 *
1243 1244 * @param int $timeout Timeout, in seconds.
1244 1245 */
1245 - $timeout = apply_filters( $this->base->plugin->filter_name . '_pro_api_get_timeout', $timeout );
1246 + $timeout = apply_filters( $this->base->plugin->filter_name . '_api_get_timeout', $timeout );
1247 +
1248 + // Backward compat for the previous, misnamed filter.
1249 + $timeout = apply_filters_deprecated( $this->base->plugin->filter_name . '_pro_api_get_timeout', array( $timeout ), '6.2.6', $this->base->plugin->filter_name . '_api_get_timeout' );
1246 1250
1247 1251 return $timeout;
1248 1252
1249 1253 }