User registration & user profile – Profile Builder - Version 2.2.9

Version Description

  • Fixed compatibility with Yoast and Page Builder by SiteOrigin that caused our shortcodes to be executed multiple times
Download this release

Release Info

Developer madalin.ungureanu
Plugin Icon 128x128 User registration & user profile – Profile Builder
Version 2.2.9
Comparing to
See all releases

Code changes from version 2.2.8 to 2.2.9

assets/misc/plugin-compatibilities.php CHANGED
@@ -248,4 +248,28 @@
248
  }
249
  }
250
  add_action( 'set_auth_cookie', 'wppb_check_edd_login_form', 10, 5 );
251
- add_action( 'set_logged_in_cookie', 'wppb_check_edd_login_form', 10, 5 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  }
249
  }
250
  add_action( 'set_auth_cookie', 'wppb_check_edd_login_form', 10, 5 );
251
+ add_action( 'set_logged_in_cookie', 'wppb_check_edd_login_form', 10, 5 );
252
+
253
+
254
+ /****************************************************
255
+ * Plugin Name: Page Builder by SiteOrigin && Yoast SEO
256
+ * Plugin URI: https://wordpress.org/plugins/siteorigin-panels/ && https://wordpress.org/plugins/wordpress-seo/
257
+ * When both plugins are activated SEO generates description tags that execute shortcodes because of the filter on "the_content" added by Page Builder when generating the excerpt
258
+ ****************************************************/
259
+ if( function_exists( 'siteorigin_panels_filter_content' ) ){
260
+ add_action( 'wpseo_head', 'wppb_remove_siteorigin_panels_content_filter', 8 );
261
+ function wppb_remove_siteorigin_panels_content_filter()
262
+ {
263
+ global $post;
264
+ if( has_shortcode( $post->post_content, 'wppb-register' ) || has_shortcode( $post->post_content, 'wppb-edit-profile' ) || has_shortcode( $post->post_content, 'wppb-login' ) || has_shortcode( $post->post_content, 'wppb-list-users' ) )
265
+ remove_filter( 'the_content', 'siteorigin_panels_filter_content' );
266
+ }
267
+
268
+ add_filter( 'wpseo_head', 'wppb_add_back_siteorigin_panels_content_filter', 50 );
269
+ function wppb_add_back_siteorigin_panels_content_filter()
270
+ {
271
+ global $post;
272
+ if( has_shortcode( $post->post_content, 'wppb-register' ) || has_shortcode( $post->post_content, 'wppb-edit-profile' ) || has_shortcode( $post->post_content, 'wppb-login' ) || has_shortcode( $post->post_content, 'wppb-list-users' ) )
273
+ add_filter( 'the_content', 'siteorigin_panels_filter_content' );
274
+ }
275
+ }
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Profile Builder
4
  Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
5
  Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
6
- Version: 2.2.8
7
  Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
8
  Author URI: http://www.cozmoslabs.com/
9
  License: GPL2
@@ -73,7 +73,7 @@ function wppb_free_plugin_init() {
73
  *
74
  *
75
  */
76
- define('PROFILE_BUILDER_VERSION', '2.2.8' );
77
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
78
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
79
  define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
3
  Plugin Name: Profile Builder
4
  Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
5
  Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
6
+ Version: 2.2.9
7
  Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
8
  Author URI: http://www.cozmoslabs.com/
9
  License: GPL2
73
  *
74
  *
75
  */
76
+ define('PROFILE_BUILDER_VERSION', '2.2.9' );
77
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
78
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
79
  define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: registration, user profile, user registration, custom field registration,
5
 
6
  Requires at least: 3.1
7
  Tested up to: 4.4.1
8
- Stable tag: 2.2.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -115,6 +115,9 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
115
  10. Profile Builder Login Widget
116
 
117
  == Changelog ==
 
 
 
118
  = 2.2.8 =
119
  * Translation Updates
120
  * Changed User Registered date and time according to timezone selected in WordPress settings
5
 
6
  Requires at least: 3.1
7
  Tested up to: 4.4.1
8
+ Stable tag: 2.2.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
115
  10. Profile Builder Login Widget
116
 
117
  == Changelog ==
118
+ = 2.2.9 =
119
+ * Fixed compatibility with Yoast and Page Builder by SiteOrigin that caused our shortcodes to be executed multiple times
120
+
121
  = 2.2.8 =
122
  * Translation Updates
123
  * Changed User Registered date and time according to timezone selected in WordPress settings