Version Description
- Added support for Content Restriction on WooCommerce shop page and products
- Fixed php version 7.2 warnings
- Modification to the recaptcha field that will eliminate some warnings
Download this release
Release Info
| Developer | madalin.ungureanu |
| Plugin | |
| Version | 2.7.9 |
| Comparing to | |
| See all releases | |
Code changes from version 2.7.8 to 2.7.9
- features/content-restriction/content-restriction-filtering.php +88 -2
- features/content-restriction/content-restriction-functions.php +15 -3
- features/content-restriction/templates/archive-product.php +67 -0
- features/functions.php +5 -1
- front-end/default-fields/recaptcha/recaptcha.php +5 -2
- front-end/edit-profile.php +2 -4
- front-end/register.php +3 -5
- index.php +2 -2
- readme.txt +8 -1
- translation/profile-builder.pot +26 -26
features/content-restriction/content-restriction-filtering.php
CHANGED
|
@@ -72,9 +72,47 @@ function wppb_content_restriction_filter_content( $content, $post = null ) {
|
|
| 72 |
return $content;
|
| 73 |
|
| 74 |
}
|
| 75 |
-
add_filter( 'the_content', 'wppb_content_restriction_filter_content', 12 );
|
| 76 |
add_filter( 'wppb_content_restriction_post_check', 'wppb_content_restriction_filter_content', 10, 2 );
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
/* Checks to see if the attachment image is restricted and returns false instead of the image if it is restricted */
|
| 79 |
function wppb_content_restriction_filter_attachment_image_src( $image, $attachment_id ) {
|
| 80 |
|
|
@@ -193,4 +231,52 @@ function wppb_content_restriction_add_post_preview( $message, $content, $post, $
|
|
| 193 |
|
| 194 |
}
|
| 195 |
add_filter( 'wppb_content_restriction_message_logged_in', 'wppb_content_restriction_add_post_preview', 30, 4 );
|
| 196 |
-
add_filter( 'wppb_content_restriction_message_logged_out', 'wppb_content_restriction_add_post_preview', 30, 4 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
return $content;
|
| 73 |
|
| 74 |
}
|
| 75 |
+
add_filter( 'the_content', 'wppb_content_restriction_filter_content', 12, 2 );
|
| 76 |
add_filter( 'wppb_content_restriction_post_check', 'wppb_content_restriction_filter_content', 10, 2 );
|
| 77 |
|
| 78 |
+
/**
|
| 79 |
+
* Function that checks if a post id is restricted with profile builder
|
| 80 |
+
* @param $post_id
|
| 81 |
+
* @return bool true for when the post is restricted and false for when it's not
|
| 82 |
+
*/
|
| 83 |
+
function wppb_check_content_restriction_on_post_id( $post_id ){
|
| 84 |
+
global $user_ID;
|
| 85 |
+
|
| 86 |
+
// Get user roles that have access to this post
|
| 87 |
+
$user_status = get_post_meta( $post_id, 'wppb-content-restrict-user-status', true );
|
| 88 |
+
$post_user_roles = get_post_meta( $post_id, 'wppb-content-restrict-user-role' );
|
| 89 |
+
|
| 90 |
+
if( empty( $user_status ) && empty( $post_user_roles ) ) {
|
| 91 |
+
return false;
|
| 92 |
+
} else if( $user_status == 'loggedin' ) {
|
| 93 |
+
if( is_user_logged_in() ) {
|
| 94 |
+
if( ! empty( $post_user_roles ) ) {
|
| 95 |
+
$user_data = get_userdata( $user_ID );
|
| 96 |
+
foreach( $post_user_roles as $post_user_role ) {
|
| 97 |
+
foreach( $user_data->roles as $role ) {
|
| 98 |
+
if( $post_user_role == $role ) {
|
| 99 |
+
return false;
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
return true;
|
| 104 |
+
} else {
|
| 105 |
+
return false;
|
| 106 |
+
}
|
| 107 |
+
} else {
|
| 108 |
+
return true;
|
| 109 |
+
}
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
return false;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
|
| 116 |
/* Checks to see if the attachment image is restricted and returns false instead of the image if it is restricted */
|
| 117 |
function wppb_content_restriction_filter_attachment_image_src( $image, $attachment_id ) {
|
| 118 |
|
| 231 |
|
| 232 |
}
|
| 233 |
add_filter( 'wppb_content_restriction_message_logged_in', 'wppb_content_restriction_add_post_preview', 30, 4 );
|
| 234 |
+
add_filter( 'wppb_content_restriction_message_logged_out', 'wppb_content_restriction_add_post_preview', 30, 4 );
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
if( function_exists( 'wc_get_page_id' ) ) {
|
| 238 |
+
/**
|
| 239 |
+
* Restrict the Shop page
|
| 240 |
+
*
|
| 241 |
+
* @param $template The shop page template to return
|
| 242 |
+
* @return string
|
| 243 |
+
*/
|
| 244 |
+
function wppb_woo_restrict_shop_page($template){
|
| 245 |
+
|
| 246 |
+
// check if we're on the Shop page (set under WooCommerce Settings -> Products -> Display)
|
| 247 |
+
if (is_post_type_archive('product') || is_page(wc_get_page_id('shop'))) {
|
| 248 |
+
|
| 249 |
+
// get the ID of the shop page
|
| 250 |
+
$post_id = wc_get_page_id('shop');
|
| 251 |
+
|
| 252 |
+
if (($post_id != -1) && wppb_check_content_restriction_on_post_id($post_id)) {
|
| 253 |
+
|
| 254 |
+
$shop_page = get_post($post_id);
|
| 255 |
+
|
| 256 |
+
setup_postdata($shop_page);
|
| 257 |
+
|
| 258 |
+
$template = WPPB_PLUGIN_DIR . 'features/content-restriction/templates/archive-product.php';
|
| 259 |
+
|
| 260 |
+
wp_reset_postdata();
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
return $template;
|
| 266 |
+
}
|
| 267 |
+
add_filter('template_include', 'wppb_woo_restrict_shop_page', 40);
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
/* restrict products content */
|
| 271 |
+
add_action( 'woocommerce_before_single_product', 'wppb_woo_product_restriction_start' );
|
| 272 |
+
function wppb_woo_product_restriction_start(){
|
| 273 |
+
ob_start();
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
add_action( 'woocommerce_after_single_product', 'wppb_woo_product_restriction_end' );
|
| 277 |
+
function wppb_woo_product_restriction_end(){
|
| 278 |
+
$product_content = ob_get_contents();
|
| 279 |
+
ob_end_clean();
|
| 280 |
+
echo apply_filters( 'the_content', $product_content );
|
| 281 |
+
}
|
| 282 |
+
}
|
features/content-restriction/content-restriction-functions.php
CHANGED
|
@@ -102,12 +102,24 @@ function wppb_content_restriction_get_post_message( $post_id = 0 ) {
|
|
| 102 |
|
| 103 |
/* Checks to see if the current post is restricted and if any redirect URLs are in place the user is redirected to the URL with the highest priority */
|
| 104 |
function wppb_content_restriction_post_redirect() {
|
|
|
|
| 105 |
|
| 106 |
-
if(
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
}
|
| 109 |
|
| 110 |
-
|
| 111 |
|
| 112 |
$redirect_url = '';
|
| 113 |
$post_restriction_type = get_post_meta( $post->ID, 'wppb-content-restrict-type', true );
|
| 102 |
|
| 103 |
/* Checks to see if the current post is restricted and if any redirect URLs are in place the user is redirected to the URL with the highest priority */
|
| 104 |
function wppb_content_restriction_post_redirect() {
|
| 105 |
+
global $post;
|
| 106 |
|
| 107 |
+
if( function_exists( 'wc_get_page_id' ) ) {//redirect restriction for woocommerce shop page
|
| 108 |
+
if ( !is_singular() && !( is_post_type_archive('product') || is_page(wc_get_page_id('shop')) ) ){
|
| 109 |
+
return;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
if( is_post_type_archive('product') || is_page(wc_get_page_id('shop')) ){
|
| 113 |
+
$post = get_post( wc_get_page_id('shop') );
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
else {
|
| 117 |
+
if (!is_singular()) {
|
| 118 |
+
return;
|
| 119 |
+
}
|
| 120 |
}
|
| 121 |
|
| 122 |
+
|
| 123 |
|
| 124 |
$redirect_url = '';
|
| 125 |
$post_restriction_type = get_post_meta( $post->ID, 'wppb-content-restrict-type', true );
|
features/content-restriction/templates/archive-product.php
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Template used to overwrite the main shop page which is a post type archive
|
| 4 |
+
*/
|
| 5 |
+
|
| 6 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
| 7 |
+
exit; // Exit if accessed directly
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
get_header( 'shop' ); ?>
|
| 11 |
+
|
| 12 |
+
<?php
|
| 13 |
+
/**
|
| 14 |
+
* woocommerce_before_main_content hook.
|
| 15 |
+
*
|
| 16 |
+
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
|
| 17 |
+
* @hooked woocommerce_breadcrumb - 20
|
| 18 |
+
*/
|
| 19 |
+
do_action( 'woocommerce_before_main_content' );
|
| 20 |
+
?>
|
| 21 |
+
|
| 22 |
+
<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
|
| 23 |
+
|
| 24 |
+
<h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
|
| 25 |
+
|
| 26 |
+
<?php endif; ?>
|
| 27 |
+
|
| 28 |
+
<?php
|
| 29 |
+
/**
|
| 30 |
+
* Display restriction message
|
| 31 |
+
*
|
| 32 |
+
*/
|
| 33 |
+
|
| 34 |
+
$post_id = wc_get_page_id( 'shop' );
|
| 35 |
+
|
| 36 |
+
if ($post_id != -1) {
|
| 37 |
+
$shop_post = get_post( $post_id );
|
| 38 |
+
if( is_user_logged_in() ) {
|
| 39 |
+
$message = wppb_content_restriction_process_content_message( 'logged_in', get_current_user_id(), $post_id );
|
| 40 |
+
echo do_shortcode( apply_filters( 'wppb_content_restriction_message_logged_in', $message, $shop_post->post_content, $shop_post, get_current_user_id() ) );
|
| 41 |
+
}
|
| 42 |
+
else{
|
| 43 |
+
$message = wppb_content_restriction_process_content_message( 'logged_out', get_current_user_id(), $post_id );
|
| 44 |
+
echo do_shortcode( apply_filters( 'wppb_content_restriction_message_logged_out', $message, $shop_post->post_content, $shop_post, get_current_user_id() ) );
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
?>
|
| 48 |
+
|
| 49 |
+
<?php
|
| 50 |
+
/**
|
| 51 |
+
* woocommerce_after_main_content hook.
|
| 52 |
+
*
|
| 53 |
+
* @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
|
| 54 |
+
*/
|
| 55 |
+
do_action( 'woocommerce_after_main_content' );
|
| 56 |
+
?>
|
| 57 |
+
|
| 58 |
+
<?php
|
| 59 |
+
/**
|
| 60 |
+
* woocommerce_sidebar hook.
|
| 61 |
+
*
|
| 62 |
+
* @hooked woocommerce_get_sidebar - 10
|
| 63 |
+
*/
|
| 64 |
+
do_action( 'woocommerce_sidebar' );
|
| 65 |
+
?>
|
| 66 |
+
|
| 67 |
+
<?php get_footer( 'shop' ); ?>
|
features/functions.php
CHANGED
|
@@ -169,7 +169,11 @@ function wppb_mail( $to, $subject, $message, $message_from = null, $context = nu
|
|
| 169 |
|
| 170 |
if ( $send_email ) {
|
| 171 |
//we add this filter to enable html encoding
|
| 172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
|
| 174 |
$atts = apply_filters( 'wppb_mail', compact( 'to', 'subject', 'message', 'headers' ), $context );
|
| 175 |
|
| 169 |
|
| 170 |
if ( $send_email ) {
|
| 171 |
//we add this filter to enable html encoding
|
| 172 |
+
if ( version_compare( phpversion(), '5.3.0', '<' ) ) {
|
| 173 |
+
add_filter('wp_mail_content_type', create_function('', 'return "text/html"; '));
|
| 174 |
+
}else{
|
| 175 |
+
add_filter('wp_mail_content_type', function( $content_type ) { return 'text/html'; } );
|
| 176 |
+
}
|
| 177 |
|
| 178 |
$atts = apply_filters( 'wppb_mail', compact( 'to', 'subject', 'message', 'headers' ), $context );
|
| 179 |
|
front-end/default-fields/recaptcha/recaptcha.php
CHANGED
|
@@ -68,14 +68,17 @@ function wppb_recaptcha_get_html ( $pubkey, $form_name='' ){
|
|
| 68 |
* Add reCAPTCHA scripts to both front-end PB forms (with support for multiple forms) as well as Default WP forms
|
| 69 |
*/
|
| 70 |
function wppb_recaptcha_script_footer(){
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
//we don't have jquery on the backend
|
| 73 |
if( current_filter() != 'wp_footer' ) {
|
| 74 |
wp_print_scripts('jquery');
|
| 75 |
}
|
| 76 |
|
| 77 |
//get site key
|
| 78 |
-
$field = wppb_get_recaptcha_field();
|
| 79 |
$pubkey = '';
|
| 80 |
if( isset( $field['public-key'] ) ) {
|
| 81 |
$pubkey = trim( $field['public-key'] );
|
| 68 |
* Add reCAPTCHA scripts to both front-end PB forms (with support for multiple forms) as well as Default WP forms
|
| 69 |
*/
|
| 70 |
function wppb_recaptcha_script_footer(){
|
| 71 |
+
$field = wppb_get_recaptcha_field();
|
| 72 |
+
/* if we do not have a recaptcha field don't do nothing */
|
| 73 |
+
if( empty( $field ) )
|
| 74 |
+
return;
|
| 75 |
+
|
| 76 |
//we don't have jquery on the backend
|
| 77 |
if( current_filter() != 'wp_footer' ) {
|
| 78 |
wp_print_scripts('jquery');
|
| 79 |
}
|
| 80 |
|
| 81 |
//get site key
|
|
|
|
| 82 |
$pubkey = '';
|
| 83 |
if( isset( $field['public-key'] ) ) {
|
| 84 |
$pubkey = trim( $field['public-key'] );
|
front-end/edit-profile.php
CHANGED
|
@@ -75,9 +75,7 @@ function wppb_front_end_profile_info( $atts ){
|
|
| 75 |
// get value set in the shortcode as parameter, still need to default to something else than empty string
|
| 76 |
extract( shortcode_atts( array( 'form_name' => 'unspecified', 'redirect_url' => '', 'redirect_priority' => 'normal' ), $atts, 'wppb-edit-profile' ) );
|
| 77 |
|
| 78 |
-
|
| 79 |
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
return $$form_name;
|
| 83 |
}
|
| 75 |
// get value set in the shortcode as parameter, still need to default to something else than empty string
|
| 76 |
extract( shortcode_atts( array( 'form_name' => 'unspecified', 'redirect_url' => '', 'redirect_priority' => 'normal' ), $atts, 'wppb-edit-profile' ) );
|
| 77 |
|
| 78 |
+
$form = new Profile_Builder_Form_Creator( array( 'form_type' => 'edit_profile', 'form_name' => $form_name, 'redirect_url' => $redirect_url, 'redirect_priority' => $redirect_priority ) );
|
| 79 |
|
| 80 |
+
return $form;
|
|
|
|
|
|
|
| 81 |
}
|
front-end/register.php
CHANGED
|
@@ -157,13 +157,11 @@ function wppb_activate_signup( $key ) {
|
|
| 157 |
|
| 158 |
//function to display the registration page
|
| 159 |
function wppb_front_end_register( $atts ){
|
| 160 |
-
extract( shortcode_atts( array( 'role' => get_option( 'default_role' ), 'form_name' => 'unspecified', 'redirect_url' => '', 'logout_redirect_url' => '', 'redirect_priority' => 'normal' ), $atts, 'wppb-register' ) );
|
| 161 |
|
| 162 |
-
|
| 163 |
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
return $$form_name;
|
| 167 |
}
|
| 168 |
|
| 169 |
// function to choose whether to display the registration page or the validation message
|
| 157 |
|
| 158 |
//function to display the registration page
|
| 159 |
function wppb_front_end_register( $atts ){
|
| 160 |
+
extract( shortcode_atts( array( 'role' => get_option( 'default_role' ), 'form_name' => 'unspecified', 'redirect_url' => '', 'logout_redirect_url' => '', 'redirect_priority' => 'normal' ), $atts, 'wppb-register' ) );
|
| 161 |
|
| 162 |
+
$form = new Profile_Builder_Form_Creator( array( 'form_type' => 'register', 'form_name' => $form_name, 'role' => ( is_object( get_role( $role ) ) ? $role : get_option( 'default_role' ) ) , 'redirect_url' => $redirect_url, 'logout_redirect_url' => $logout_redirect_url, 'redirect_priority' => $redirect_priority ) );
|
| 163 |
|
| 164 |
+
return $form;
|
|
|
|
|
|
|
| 165 |
}
|
| 166 |
|
| 167 |
// function to choose whether to display the registration page or the validation message
|
index.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Profile Builder
|
| 4 |
Plugin URI: https://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.7.
|
| 7 |
Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
|
| 8 |
Author URI: https://www.cozmoslabs.com/
|
| 9 |
Text Domain: profile-builder
|
|
@@ -75,7 +75,7 @@ function wppb_free_plugin_init() {
|
|
| 75 |
*
|
| 76 |
*
|
| 77 |
*/
|
| 78 |
-
define('PROFILE_BUILDER_VERSION', '2.7.
|
| 79 |
define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
| 80 |
define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
|
| 81 |
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: https://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.7.9
|
| 7 |
Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
|
| 8 |
Author URI: https://www.cozmoslabs.com/
|
| 9 |
Text Domain: profile-builder
|
| 75 |
*
|
| 76 |
*
|
| 77 |
*/
|
| 78 |
+
define('PROFILE_BUILDER_VERSION', '2.7.9' );
|
| 79 |
define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
| 80 |
define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
|
| 81 |
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
|
@@ -4,7 +4,7 @@ Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
|
|
| 4 |
Tags: user registration, user profile, user registration form, user fields, extra user fields, edit profile, user custom fields, front-end login, front-end edit profile, front-end user registration, email confirmation, login form, content restriction, restrict content
|
| 5 |
Requires at least: 3.1
|
| 6 |
Tested up to: 4.9.4
|
| 7 |
-
Stable tag: 2.7.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -55,6 +55,8 @@ Users with administrator rights have access to the following features:
|
|
| 55 |
* **reCAPTCHA** support for Profile Builder and Wordpress default forms
|
| 56 |
* **User Role Select** field on register and edit profile forms
|
| 57 |
* **Content Restriction**: restrict content based on current users role or logged in status
|
|
|
|
|
|
|
| 58 |
|
| 59 |
**PROFILE BUILDER PRO**
|
| 60 |
|
|
@@ -163,6 +165,11 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
|
|
| 163 |
12. Role Editor
|
| 164 |
|
| 165 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
= 2.7.8 =
|
| 167 |
* Fixed issue with reCaptcha not appearing any more in some cases
|
| 168 |
* Fixed a notice introduced in the last update
|
| 4 |
Tags: user registration, user profile, user registration form, user fields, extra user fields, edit profile, user custom fields, front-end login, front-end edit profile, front-end user registration, email confirmation, login form, content restriction, restrict content
|
| 5 |
Requires at least: 3.1
|
| 6 |
Tested up to: 4.9.4
|
| 7 |
+
Stable tag: 2.7.9
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 55 |
* **reCAPTCHA** support for Profile Builder and Wordpress default forms
|
| 56 |
* **User Role Select** field on register and edit profile forms
|
| 57 |
* **Content Restriction**: restrict content based on current users role or logged in status
|
| 58 |
+
* Restrict WooCommerce shop page and products
|
| 59 |
+
* Invisible reCAPTCHA support for both Profile Builder forms as well as default WordPress forms
|
| 60 |
|
| 61 |
**PROFILE BUILDER PRO**
|
| 62 |
|
| 165 |
12. Role Editor
|
| 166 |
|
| 167 |
== Changelog ==
|
| 168 |
+
= 2.7.9 =
|
| 169 |
+
* Added support for Content Restriction on WooCommerce shop page and products
|
| 170 |
+
* Fixed php version 7.2 warnings
|
| 171 |
+
* Modification to the recaptcha field that will eliminate some warnings
|
| 172 |
+
|
| 173 |
= 2.7.8 =
|
| 174 |
* Fixed issue with reCaptcha not appearing any more in some cases
|
| 175 |
* Fixed a notice introduced in the last update
|
translation/profile-builder.pot
CHANGED
|
@@ -421,11 +421,11 @@ msgstr ""
|
|
| 421 |
msgid "<pre>Title</pre><pre>Type</pre><pre>Meta Name</pre><pre class=\"wppb-mb-head-required\">Required</pre><pre class=\"wppb-mb-head-visibility\"></pre>"
|
| 422 |
msgstr ""
|
| 423 |
|
| 424 |
-
#: ../pb-add-on-field-visibility/index.php:222, ../pb-add-on-labels-edit/pble.php:354, ../profile-builder-2.0/admin/manage-fields.php:1204, ../profile-builder-2.0/features/functions.php:
|
| 425 |
msgid "Edit"
|
| 426 |
msgstr ""
|
| 427 |
|
| 428 |
-
#: ../pb-add-on-field-visibility/index.php:222, ../profile-builder-2.0/admin/manage-fields.php:1204, ../profile-builder-2.0/features/functions.php:
|
| 429 |
msgid "Delete"
|
| 430 |
msgstr ""
|
| 431 |
|
|
@@ -853,7 +853,7 @@ msgstr ""
|
|
| 853 |
msgid "You will be redirected in 5 seconds. If not, click %%."
|
| 854 |
msgstr ""
|
| 855 |
|
| 856 |
-
#: ../pb-add-on-social-connect/index.php:390, ../profile-builder-2.0/features/functions.php:
|
| 857 |
msgid "here"
|
| 858 |
msgstr ""
|
| 859 |
|
|
@@ -1173,7 +1173,7 @@ msgstr ""
|
|
| 1173 |
msgid "Click to edit"
|
| 1174 |
msgstr ""
|
| 1175 |
|
| 1176 |
-
#: ../pb-add-on-campaign-monitor-integration/admin/cmonitor-page.php:451, ../pb-add-on-mailchimp-integration/admin/mailchimp-page.php:171, ../profile-builder-2.0/features/functions.php:
|
| 1177 |
msgid "Cancel"
|
| 1178 |
msgstr ""
|
| 1179 |
|
|
@@ -1715,15 +1715,15 @@ msgstr ""
|
|
| 1715 |
msgid "Very weak"
|
| 1716 |
msgstr ""
|
| 1717 |
|
| 1718 |
-
#: ../profile-builder-2.0/admin/admin-functions.php:137, ../profile-builder-2.0/admin/general-settings.php:230, ../profile-builder-2.0/features/functions.php:
|
| 1719 |
msgid "Weak"
|
| 1720 |
msgstr ""
|
| 1721 |
|
| 1722 |
-
#: ../profile-builder-2.0/admin/admin-functions.php:137, ../profile-builder-2.0/admin/general-settings.php:231, ../profile-builder-2.0/features/functions.php:
|
| 1723 |
msgid "Medium"
|
| 1724 |
msgstr ""
|
| 1725 |
|
| 1726 |
-
#: ../profile-builder-2.0/admin/admin-functions.php:137, ../profile-builder-2.0/admin/general-settings.php:232, ../profile-builder-2.0/features/functions.php:
|
| 1727 |
msgid "Strong"
|
| 1728 |
msgstr ""
|
| 1729 |
|
|
@@ -4317,59 +4317,59 @@ msgstr ""
|
|
| 4317 |
msgid "<p>Your <strong>Profile Builder</strong> license is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now and get 40% off %4$s %6$sDismiss%7$s</p>"
|
| 4318 |
msgstr ""
|
| 4319 |
|
| 4320 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4321 |
msgid "Strength indicator"
|
| 4322 |
msgstr ""
|
| 4323 |
|
| 4324 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4325 |
msgid "Very Weak"
|
| 4326 |
msgstr ""
|
| 4327 |
|
| 4328 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4329 |
msgid "Minimum length of %d characters."
|
| 4330 |
msgstr ""
|
| 4331 |
|
| 4332 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4333 |
msgid "The password must have a minimum strength of %s."
|
| 4334 |
msgstr ""
|
| 4335 |
|
| 4336 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4337 |
msgid "This field is required"
|
| 4338 |
msgstr ""
|
| 4339 |
|
| 4340 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4341 |
msgid "Please enter a (valid) reCAPTCHA value"
|
| 4342 |
msgstr ""
|
| 4343 |
|
| 4344 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4345 |
msgid "Incorrect phone number"
|
| 4346 |
msgstr ""
|
| 4347 |
|
| 4348 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4349 |
msgid "Save Changes"
|
| 4350 |
msgstr ""
|
| 4351 |
|
| 4352 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4353 |
msgid "Content"
|
| 4354 |
msgstr ""
|
| 4355 |
|
| 4356 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4357 |
msgid "To allow users to register for your website via Profile Builder, you first must enable user registration. Go to %1$sNetwork Settings%2$s, and under Registration Settings make sure to check “User accounts may be registered”. %3$sDismiss%4$s"
|
| 4358 |
msgstr ""
|
| 4359 |
|
| 4360 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4361 |
msgid "To allow users to register for your website via Profile Builder, you first must enable user registration. Go to %1$sSettings -> General%2$s tab, and under Membership make sure to check “Anyone can register”. %3$sDismiss%4$s"
|
| 4362 |
msgstr ""
|
| 4363 |
|
| 4364 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4365 |
msgid "<br><br>Also, you will be able to visit your site at "
|
| 4366 |
msgstr ""
|
| 4367 |
|
| 4368 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4369 |
msgid "<br><br>You can visit your site at "
|
| 4370 |
msgstr ""
|
| 4371 |
|
| 4372 |
-
#: ../profile-builder-2.0/features/functions.php:
|
| 4373 |
msgid "You will soon be redirected automatically. If you see this page for more than %1$d seconds, please click %2$s.%3$s"
|
| 4374 |
msgstr ""
|
| 4375 |
|
|
@@ -5041,7 +5041,7 @@ msgstr ""
|
|
| 5041 |
msgid "[%1$s] Your new account information"
|
| 5042 |
msgstr ""
|
| 5043 |
|
| 5044 |
-
#: ../profile-builder-2.0/features/email-confirmation/email-confirmation.php:580, ../profile-builder-2.0/features/email-confirmation/email-confirmation.php:589, ../profile-builder-2.0/modules/email-customizer/email-customizer.php:
|
| 5045 |
msgid "Your selected password at signup"
|
| 5046 |
msgstr ""
|
| 5047 |
|
|
@@ -5481,7 +5481,7 @@ msgstr ""
|
|
| 5481 |
msgid "Approve User Link"
|
| 5482 |
msgstr ""
|
| 5483 |
|
| 5484 |
-
#: ../profile-builder-2.0/modules/email-customizer/email-customizer.php:
|
| 5485 |
msgid "The users selected password at signup"
|
| 5486 |
msgstr ""
|
| 5487 |
|
|
@@ -6233,15 +6233,15 @@ msgstr ""
|
|
| 6233 |
msgid "To use reCAPTCHA you must get an API key from"
|
| 6234 |
msgstr ""
|
| 6235 |
|
| 6236 |
-
#: ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:
|
| 6237 |
msgid "For security reasons, you must pass the remote ip to reCAPTCHA!"
|
| 6238 |
msgstr ""
|
| 6239 |
|
| 6240 |
-
#: ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:
|
| 6241 |
msgid "To use reCAPTCHA you must get an API public key from:"
|
| 6242 |
msgstr ""
|
| 6243 |
|
| 6244 |
-
#: ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:
|
| 6245 |
msgid "Click the BACK button on your browser, and try again."
|
| 6246 |
msgstr ""
|
| 6247 |
|
| 421 |
msgid "<pre>Title</pre><pre>Type</pre><pre>Meta Name</pre><pre class=\"wppb-mb-head-required\">Required</pre><pre class=\"wppb-mb-head-visibility\"></pre>"
|
| 422 |
msgstr ""
|
| 423 |
|
| 424 |
+
#: ../pb-add-on-field-visibility/index.php:222, ../pb-add-on-labels-edit/pble.php:354, ../profile-builder-2.0/admin/manage-fields.php:1204, ../profile-builder-2.0/features/functions.php:747, ../profile-builder-2.0/features/functions.php:754, ../profile-builder-2.0/features/admin-approval/class-admin-approval.php:108, ../profile-builder-2.0/features/roles-editor/roles-editor.php:866, ../profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:183, ../profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:197, ../profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:211, ../profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:225, ../profile-builder-2.0/modules/multiple-forms/multiple-forms.php:406
|
| 425 |
msgid "Edit"
|
| 426 |
msgstr ""
|
| 427 |
|
| 428 |
+
#: ../pb-add-on-field-visibility/index.php:222, ../profile-builder-2.0/admin/manage-fields.php:1204, ../profile-builder-2.0/features/functions.php:740, ../profile-builder-2.0/features/functions.php:754, ../profile-builder-2.0/features/admin-approval/class-admin-approval.php:113, ../profile-builder-2.0/features/email-confirmation/class-email-confirmation.php:121, ../profile-builder-2.0/features/email-confirmation/class-email-confirmation.php:218, ../profile-builder-2.0/features/roles-editor/roles-editor.php:179, ../profile-builder-2.0/features/roles-editor/roles-editor.php:884, ../profile-builder-2.0/features/roles-editor/roles-editor.php:893, ../profile-builder-2.0/features/roles-editor/roles-editor.php:904, ../profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:183, ../profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:197, ../profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:211, ../profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:225
|
| 429 |
msgid "Delete"
|
| 430 |
msgstr ""
|
| 431 |
|
| 853 |
msgid "You will be redirected in 5 seconds. If not, click %%."
|
| 854 |
msgstr ""
|
| 855 |
|
| 856 |
+
#: ../pb-add-on-social-connect/index.php:390, ../profile-builder-2.0/features/functions.php:1032
|
| 857 |
msgid "here"
|
| 858 |
msgstr ""
|
| 859 |
|
| 1173 |
msgid "Click to edit"
|
| 1174 |
msgstr ""
|
| 1175 |
|
| 1176 |
+
#: ../pb-add-on-campaign-monitor-integration/admin/cmonitor-page.php:451, ../pb-add-on-mailchimp-integration/admin/mailchimp-page.php:171, ../profile-builder-2.0/features/functions.php:733, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:403, ../profile-builder-2.0/assets/lib/wck-api/wordpress-creation-kit.php:395
|
| 1177 |
msgid "Cancel"
|
| 1178 |
msgstr ""
|
| 1179 |
|
| 1715 |
msgid "Very weak"
|
| 1716 |
msgstr ""
|
| 1717 |
|
| 1718 |
+
#: ../profile-builder-2.0/admin/admin-functions.php:137, ../profile-builder-2.0/admin/general-settings.php:230, ../profile-builder-2.0/features/functions.php:567, ../profile-builder-2.0/features/functions.php:591
|
| 1719 |
msgid "Weak"
|
| 1720 |
msgstr ""
|
| 1721 |
|
| 1722 |
+
#: ../profile-builder-2.0/admin/admin-functions.php:137, ../profile-builder-2.0/admin/general-settings.php:231, ../profile-builder-2.0/features/functions.php:567, ../profile-builder-2.0/features/functions.php:591
|
| 1723 |
msgid "Medium"
|
| 1724 |
msgstr ""
|
| 1725 |
|
| 1726 |
+
#: ../profile-builder-2.0/admin/admin-functions.php:137, ../profile-builder-2.0/admin/general-settings.php:232, ../profile-builder-2.0/features/functions.php:567, ../profile-builder-2.0/features/functions.php:591
|
| 1727 |
msgid "Strong"
|
| 1728 |
msgstr ""
|
| 1729 |
|
| 4317 |
msgid "<p>Your <strong>Profile Builder</strong> license is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now and get 40% off %4$s %6$sDismiss%7$s</p>"
|
| 4318 |
msgstr ""
|
| 4319 |
|
| 4320 |
+
#: ../profile-builder-2.0/features/functions.php:541
|
| 4321 |
msgid "Strength indicator"
|
| 4322 |
msgstr ""
|
| 4323 |
|
| 4324 |
+
#: ../profile-builder-2.0/features/functions.php:567, ../profile-builder-2.0/features/functions.php:591
|
| 4325 |
msgid "Very Weak"
|
| 4326 |
msgstr ""
|
| 4327 |
|
| 4328 |
+
#: ../profile-builder-2.0/features/functions.php:581
|
| 4329 |
msgid "Minimum length of %d characters."
|
| 4330 |
msgstr ""
|
| 4331 |
|
| 4332 |
+
#: ../profile-builder-2.0/features/functions.php:592
|
| 4333 |
msgid "The password must have a minimum strength of %s."
|
| 4334 |
msgstr ""
|
| 4335 |
|
| 4336 |
+
#: ../profile-builder-2.0/features/functions.php:669
|
| 4337 |
msgid "This field is required"
|
| 4338 |
msgstr ""
|
| 4339 |
|
| 4340 |
+
#: ../profile-builder-2.0/features/functions.php:707, ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:461, ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:468, ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:519, ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:564
|
| 4341 |
msgid "Please enter a (valid) reCAPTCHA value"
|
| 4342 |
msgstr ""
|
| 4343 |
|
| 4344 |
+
#: ../profile-builder-2.0/features/functions.php:714
|
| 4345 |
msgid "Incorrect phone number"
|
| 4346 |
msgstr ""
|
| 4347 |
|
| 4348 |
+
#: ../profile-builder-2.0/features/functions.php:726, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:402, ../profile-builder-2.0/assets/lib/wck-api/wordpress-creation-kit.php:394
|
| 4349 |
msgid "Save Changes"
|
| 4350 |
msgstr ""
|
| 4351 |
|
| 4352 |
+
#: ../profile-builder-2.0/features/functions.php:754, ../pb-add-on-labels-edit/assets/lib/wck-api/wordpress-creation-kit.php:444, ../profile-builder-2.0/assets/lib/wck-api/wordpress-creation-kit.php:436
|
| 4353 |
msgid "Content"
|
| 4354 |
msgstr ""
|
| 4355 |
|
| 4356 |
+
#: ../profile-builder-2.0/features/functions.php:765
|
| 4357 |
msgid "To allow users to register for your website via Profile Builder, you first must enable user registration. Go to %1$sNetwork Settings%2$s, and under Registration Settings make sure to check “User accounts may be registered”. %3$sDismiss%4$s"
|
| 4358 |
msgstr ""
|
| 4359 |
|
| 4360 |
+
#: ../profile-builder-2.0/features/functions.php:769
|
| 4361 |
msgid "To allow users to register for your website via Profile Builder, you first must enable user registration. Go to %1$sSettings -> General%2$s tab, and under Membership make sure to check “Anyone can register”. %3$sDismiss%4$s"
|
| 4362 |
msgstr ""
|
| 4363 |
|
| 4364 |
+
#: ../profile-builder-2.0/features/functions.php:934
|
| 4365 |
msgid "<br><br>Also, you will be able to visit your site at "
|
| 4366 |
msgstr ""
|
| 4367 |
|
| 4368 |
+
#: ../profile-builder-2.0/features/functions.php:947
|
| 4369 |
msgid "<br><br>You can visit your site at "
|
| 4370 |
msgstr ""
|
| 4371 |
|
| 4372 |
+
#: ../profile-builder-2.0/features/functions.php:1033
|
| 4373 |
msgid "You will soon be redirected automatically. If you see this page for more than %1$d seconds, please click %2$s.%3$s"
|
| 4374 |
msgstr ""
|
| 4375 |
|
| 5041 |
msgid "[%1$s] Your new account information"
|
| 5042 |
msgstr ""
|
| 5043 |
|
| 5044 |
+
#: ../profile-builder-2.0/features/email-confirmation/email-confirmation.php:580, ../profile-builder-2.0/features/email-confirmation/email-confirmation.php:589, ../profile-builder-2.0/modules/email-customizer/email-customizer.php:494, ../profile-builder-2.0/modules/email-customizer/email-customizer.php:501, ../profile-builder-2.0/modules/email-customizer/email-customizer.php:515
|
| 5045 |
msgid "Your selected password at signup"
|
| 5046 |
msgstr ""
|
| 5047 |
|
| 5481 |
msgid "Approve User Link"
|
| 5482 |
msgstr ""
|
| 5483 |
|
| 5484 |
+
#: ../profile-builder-2.0/modules/email-customizer/email-customizer.php:486
|
| 5485 |
msgid "The users selected password at signup"
|
| 5486 |
msgstr ""
|
| 5487 |
|
| 6233 |
msgid "To use reCAPTCHA you must get an API key from"
|
| 6234 |
msgstr ""
|
| 6235 |
|
| 6236 |
+
#: ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:176
|
| 6237 |
msgid "For security reasons, you must pass the remote ip to reCAPTCHA!"
|
| 6238 |
msgstr ""
|
| 6239 |
|
| 6240 |
+
#: ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:241
|
| 6241 |
msgid "To use reCAPTCHA you must get an API public key from:"
|
| 6242 |
msgstr ""
|
| 6243 |
|
| 6244 |
+
#: ../profile-builder-2.0/front-end/default-fields/recaptcha/recaptcha.php:519
|
| 6245 |
msgid "Click the BACK button on your browser, and try again."
|
| 6246 |
msgstr ""
|
| 6247 |
|
