PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.2
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmStyleApi.php +6 -10 6.336.2 View file →
@@ -8,23 +8,18 @@
8 8 */
9 9 class FrmStyleApi extends FrmFormApi {
10 10
11 11 /**
12 - * @var string
12 + * @var string $base_api_url
13 13 */
14 14 private static $base_api_url = 'https://formidableforms.com/wp-json/style-templates/v1/list';
15 15
16 16 /**
17 - * @var int
17 + * @var int $new_days
18 18 */
19 19 protected $new_days = 30;
20 20
21 21 /**
22 - * @var string
23 - */
24 - protected $cache_timeout = '+12 hours';
25 -
26 - /**
27 22 * @return string
28 23 */
29 24 protected function api_url() {
30 25 return self::$base_api_url;
@@ -33,18 +28,19 @@
33 28 /**
34 29 * @return void
35 30 */
36 31 protected function set_cache_key() {
37 - $this->cache_key = 'frm_style_templates_l' . ( ! empty( $this->license ) ? md5( $this->license ) : '' );
32 + $this->cache_key = 'frm_style_templates_l' . ( empty( $this->license ) ? '' : md5( $this->license ) );
38 33 }
39 34
40 35 public function get_api_info() {
41 - return $this->fill_missing_style_settings( parent::get_api_info() );
36 + $api_info = parent::get_api_info();
37 + $api_info = $this->fill_missing_style_settings( $api_info );
38 + return $api_info;
42 39 }
43 40
44 41 /**
45 42 * @param array $api_info
46 - *
47 43 * @return array
48 44 */
49 45 private function fill_missing_style_settings( $api_info ) {
50 46 // Remove 'Styling Template' from titles.