Toolset Types – Custom Post Types, Custom Fields and Taxonomies - Version 1.7.7

Version Description

  • Release date: 2015-07-21
  • Fixed a problem with the Getting Started tutorials.
Download this release

Release Info

Developer jadpm
Plugin Icon 128x128 Toolset Types – Custom Post Types, Custom Fields and Taxonomies
Version 1.7.7
Comparing to
See all releases

Code changes from version 1.7.6 to 1.7.7

classes/class.wpcf-marketing-tutorial.php CHANGED
@@ -69,7 +69,7 @@ class WPCF_Types_Marketing_Tutorial extends WPCF_Types_Marketing
69
  }
70
  $url = $this->add_ga_campain($url, 'fetch-data');
71
 
72
- $resp = wp_remote_get($url);
73
 
74
  if ( is_wp_error( $resp ) ) {
75
  /**
@@ -85,11 +85,11 @@ class WPCF_Types_Marketing_Tutorial extends WPCF_Types_Marketing
85
  if ( 200 != $resp['response']['code'] ) {
86
  return $this->error('wrong response status');
87
  }
88
-
89
- $title = preg_split('/<header class="masthead">/', $resp['body']);
90
- $title = preg_split('/<h1>/', $title[1]);
91
- $title = preg_split('@</h1>@', $title[1]);
92
- $title = $title[0];
93
 
94
  $body = '';
95
  $containers = preg_split( '/<div class="container">/', $resp['body'] );
69
  }
70
  $url = $this->add_ga_campain($url, 'fetch-data');
71
 
72
+ $resp = wp_remote_get($url, array('timeout' => 30));
73
 
74
  if ( is_wp_error( $resp ) ) {
75
  /**
85
  if ( 200 != $resp['response']['code'] ) {
86
  return $this->error('wrong response status');
87
  }
88
+
89
+ //$title = preg_split('/<header class="masthead">/', $resp['body']);// WARNING this HTL element no longer exists!!!!
90
+ $title_temp = preg_split('/<h1>/', $resp['body']);
91
+ $title_temp_temp = isset( $title_temp[1] ) ? preg_split('@</h1>@', $title_temp[1]) : array( '' );
92
+ $title = $title_temp_temp[0];
93
 
94
  $body = '';
95
  $containers = preg_split( '/<div class="container">/', $resp['body'] );
classes/class.wpcf-marketing.php CHANGED
@@ -79,7 +79,7 @@ class WPCF_Types_Marketing
79
  array(
80
  'utm_source' => 'typesplugin',
81
  'utm_medium' => 'insert-fields',
82
- 'utm_campaig' => 'postedit',
83
  'utm_term' => 'meet-toolset',
84
  ),
85
  'http://wp-types.com/'
@@ -91,7 +91,7 @@ class WPCF_Types_Marketing
91
  array(
92
  'utm_source' => 'typesplugin',
93
  'utm_medium' => 'insert-fields',
94
- 'utm_campaig' => 'postedit',
95
  'utm_term' => 'creating-content-templates',
96
  ),
97
  'http://wp-types.com/documentation/user-guides/view-templates/'
@@ -201,7 +201,7 @@ class WPCF_Types_Marketing
201
  array(
202
  'utm_source' => 'typesplugin',
203
  'utm_medium' => $utm_medium,
204
- 'utm_campaig' => sprintf('%s-howto', $this->get_kind() ),
205
  ),
206
  $url
207
  );
79
  array(
80
  'utm_source' => 'typesplugin',
81
  'utm_medium' => 'insert-fields',
82
+ 'utm_campaign' => 'postedit',
83
  'utm_term' => 'meet-toolset',
84
  ),
85
  'http://wp-types.com/'
91
  array(
92
  'utm_source' => 'typesplugin',
93
  'utm_medium' => 'insert-fields',
94
+ 'utm_campaign' => 'postedit',
95
  'utm_term' => 'creating-content-templates',
96
  ),
97
  'http://wp-types.com/documentation/user-guides/view-templates/'
201
  array(
202
  'utm_source' => 'typesplugin',
203
  'utm_medium' => $utm_medium,
204
+ 'utm_campaign' => sprintf('%s-howto', $this->get_kind() ),
205
  ),
206
  $url
207
  );
embedded/bootstrap.php CHANGED
@@ -133,7 +133,7 @@ function wpcf_embedded_init() {
133
  // Define necessary constants if plugin is not present
134
  // This ones are skipped if used as embedded code!
135
  if ( !defined( 'WPCF_VERSION' ) ) {
136
- define( 'WPCF_VERSION', '1.7.6' );
137
  define( 'WPCF_META_PREFIX', 'wpcf-' );
138
  }
139
 
133
  // Define necessary constants if plugin is not present
134
  // This ones are skipped if used as embedded code!
135
  if ( !defined( 'WPCF_VERSION' ) ) {
136
+ define( 'WPCF_VERSION', '1.7.7' );
137
  define( 'WPCF_META_PREFIX', 'wpcf-' );
138
  }
139
 
embedded/plugin.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
- Version: 1.7.6
9
  */
10
  /**
11
  *
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
+ Version: 1.7.7
9
  */
10
  /**
11
  *
marketing/etc/types-site-kinds.php CHANGED
@@ -4,7 +4,7 @@ return array(
4
  'brochure' => array(
5
  'title' => __('Brochure', 'wpcf'),
6
  'description' => __('static content displayed in different ways', 'wpcf'),
7
- 'url' => __('http://wp-types.com/develop-brochure-site-wordpress/' , 'wpcf'),
8
  'default' => true,
9
  ),
10
  // 'directory' => array(
4
  'brochure' => array(
5
  'title' => __('Brochure', 'wpcf'),
6
  'description' => __('static content displayed in different ways', 'wpcf'),
7
+ 'url' => __('http://wp-types.com/how-to/develop-brochure-site-wordpress/' , 'wpcf'),
8
  'default' => true,
9
  ),
10
  // 'directory' => array(
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: CMS, custom field, custom fields, custom post type, custom post types, fie
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.2.2
8
- Stable tag: 1.7.6
9
 
10
  The complete and reliable plugin for managing custom post types, custom taxonomies and custom fields.
11
 
@@ -155,6 +155,11 @@ Additionally, Types is the only plugin that lets you define parent/child relatio
155
 
156
  == Changelog ==
157
 
 
 
 
 
 
158
  = 1.7.6 =
159
 
160
  * Release date: 2015-07-20
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.2.2
8
+ Stable tag: 1.7.7
9
 
10
  The complete and reliable plugin for managing custom post types, custom taxonomies and custom fields.
11
 
155
 
156
  == Changelog ==
157
 
158
+ = 1.7.7 =
159
+
160
+ * Release date: 2015-07-21
161
+ * Fixed a problem with the Getting Started tutorials.
162
+
163
  = 1.7.6 =
164
 
165
  * Release date: 2015-07-20
wpcf.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
- Version: 1.7.6
9
  */
10
  /**
11
  *
@@ -16,7 +16,7 @@ if ( !defined( 'WPCF_VERSION' ) ) {
16
  /**
17
  * make sure that WPCF_VERSION in embedded/bootstrap.php is the same!
18
  */
19
- define( 'WPCF_VERSION', '1.7.6' );
20
  }
21
 
22
  define( 'WPCF_REPOSITORY', 'http://api.wp-types.com/' );
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
+ Version: 1.7.7
9
  */
10
  /**
11
  *
16
  /**
17
  * make sure that WPCF_VERSION in embedded/bootstrap.php is the same!
18
  */
19
+ define( 'WPCF_VERSION', '1.7.7' );
20
  }
21
 
22
  define( 'WPCF_REPOSITORY', 'http://api.wp-types.com/' );