Plugin Directory

Changeset 3149760


Ignore:
Timestamp:
09/11/2024 05:44:40 AM (19 months ago)
Author:
svenl77
Message:

New version: 2.8.12

Location:
buddyforms
Files:
979 added
5 edited

Legend:

Unmodified
Added
Removed
  • buddyforms/trunk/BuddyForms.php

    r3127786 r3149760  
    88 * Plugin URI:  https://themekraft.com/buddyforms/
    99 * Description: Contact Forms, Post Forms for User Generated Content and Registration Forms easily build in minutes. Ideal for User Submitted Posts. Extendable with Addons!
    10  * Version: 2.8.11
     10 * Version: 2.8.12
    1111 * Author: ThemeKraft
    1212 * Author URI: https://themekraft.com/buddyforms/
     
    4444         * @var string
    4545         */
    46         public $version = '2.8.11';
     46        public $version = '2.8.12';
    4747
    4848        /**
  • buddyforms/trunk/includes/admin/form-builder/meta-boxes/metabox-registration.php

    r2820257 r3149760  
    175175        $new_user_role = isset( $buddyform['registration']['new_user_role'] ) ? $buddyform['registration']['new_user_role'] : 'subscriber';
    176176
     177        $new_role_obj = get_role( $new_user_role );
     178
     179        if ( ! $new_role_obj || ( $new_role_obj->has_cap( 'edit_posts' ) && ! current_user_can( 'promote_users' ) ) ) {
     180            $buddyform['registration']['new_user_role'] = 'subscriber';
     181            $new_user_role                            = 'subscriber';
     182            update_post_meta( get_the_ID(), '_buddyforms_options', $buddyform );
     183        }
     184
    177185        // User Role
    178186        $form_setup[] = new Element_Select(
  • buddyforms/trunk/includes/resources/freemius/start.php

    r3127786 r3149760  
    1616     * @var string
    1717     */
    18     $this_sdk_version = '2.7.3';
     18    $this_sdk_version = '2.7.4';
    1919
    2020    #region SDK Selection Logic --------------------------------------------------------------------
  • buddyforms/trunk/includes/resources/freemius/templates/account.php

    r3101478 r3149760  
    511511                                            <tr class="fs-field-<?php echo esc_attr( $p['id'] ) ?><?php if ( $odd ) : ?> alternate<?php endif ?>">
    512512                                                <td>
    513                                                     <nobr><?php echo esc_attr( $p['title'] ) ?><?php echo ( ! empty( $p['title'] ) ) ? ':' : '' ?></nobr>
     513                                                    <nobr><?php echo esc_html( $p['title'] ) ?><?php echo ( ! empty( $p['title'] ) ) ? ':' : '' ?></nobr>
    514514                                                </td>
    515515                                                <td<?php if ( 'plan' === $p['id'] || 'bundle_plan' === $p['id'] ) { echo ' colspan="2"'; }?>>
  • buddyforms/trunk/readme.txt

    r3127786 r3149760  
    33Tags: custom form, form builder, registration, user registration, forms
    44Requires at least: 4.0
    5 Tested up to: 6.6.1
    6 Stable tag: 2.8.11
     5Tested up to: 6.6.2
     6Stable tag: 2.8.12
    77Requires PHP: 5.3
    88License: GPLv2
     
    265265
    266266== Changelog ==
     267= 2.8.11 - 11 Sep 2024 =
     268* Only administrators can modify the default role "subscriber"
     269* Updated Freemius SDK.
     270* Tested up to WordPress 6.6.2
     271
    267272= 2.8.11 - 30 Jul 2024 =
    268273* Updated Freemius SDK.
Note: See TracChangeset for help on using the changeset viewer.