Plugin Directory

Changeset 2798490


Ignore:
Timestamp:
10/13/2022 07:37:43 PM (3 years ago)
Author:
arstudios
Message:

Release 1.5.2.

Location:
constellation-client-portal/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • constellation-client-portal/trunk/README.txt

    r2796722 r2798490  
    196196
    197197== Changelog ==
     198= 1.5.2 (Pro) - 2022-13-10 =
     199* All Core 1.5.2 updates.
     200
     201= 1.5.2 (Core) - 2022-13-10 =
     202* Update: Moved the Select2 script related to the client-add-company-select user field to the core admin js file from the pro admin js file so that the Select2 UI works as expected in the core plugin.
     203* Update: Updated the functionality that checks for saved additional assigned companies in the extra_user_profile_fields function to ensure that an array is returned if no companies are assigned, to prevent errors on user edit pages in PHP 8.
     204
    198205= 1.5.1 (Pro) - 2022-10-10 =
    199206* Improvement: Added new accp_update_login_redirect_url filter to allow developers to change the login redirect URL.
  • constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-admin.php

    r2738704 r2798490  
    22972297                    <?php
    22982298
    2299                     $saved_companies = is_object($user) ? get_user_meta($user->ID, 'client_additional_company', true) : '';
     2299                    $saved_companies = array();
     2300
     2301                    if(is_object($user)){
     2302
     2303                        if ( get_user_meta($user->ID, 'client_additional_company', true) && !empty(get_user_meta($user->ID, 'client_additional_company', true)) ){
     2304                       
     2305                            $saved_companies = get_user_meta($user->ID, 'client_additional_company', true);
     2306
     2307                        }
     2308
     2309                    }                   
    23002310                   
    23012311                    $args = array(
  • constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-company.php

    r2707099 r2798490  
    10431043            die();
    10441044       
    1045         if(  !is_admin() || !current_user_can('manage_options') )
     1045        if( !is_admin() || !current_user_can('manage_options') )
    10461046            die();
    10471047
     
    11251125       
    11261126        /**
    1127          * Assign the compan to the new user.
     1127         * Assign the company to the new user.
    11281128         */
    1129         update_user_meta($new_user_id, 'client_company', (int)$company_id);
     1129        update_user_meta($new_user_id, 'client_company', (int)$company_id);     
    11301130
    11311131
     
    11611161
    11621162        }
     1163       
    11631164
    11641165        /**
  • constellation-client-portal/trunk/admin/js/ars-constellation-client-portal-admin.js

    r2773559 r2798490  
    1616
    1717        }
     18
     19        $('.client-add-company-select').select2({
     20            placeholder: 'Select a company...',
     21            multiple: true,
     22            allowClear: true,
     23            tags: true,
     24            tokenSeparators: [',', ' ']   
     25        });
    1826       
    1927        // Delete file associated with accp_clientfile post
  • constellation-client-portal/trunk/ars-constellation-client-portal.php

    r2796722 r2798490  
    55 * Plugin URI:        https://adrianrodriguezstudios.com/constellation-client-portal/
    66 * Description:       Create private pages for each of your clients, post private files, and protect your client files from unauthorized users and search engines.  <strong>Important:</strong> All Site-level File Protection features will cease to function if the plugin is disabled or uninstalled.
    7  * Version:           1.5.1
     7 * Version:           1.5.2
    88 * Author:            ARS
    99 * Author URI:        https://adrianrodriguezstudios.com
     
    4141 */
    4242define('ACCP_PLUGIN_NAME', 'ARS_CONSTELLATION_CLIENT_PORTAL');
    43 define('ACCP_PLUGIN_VERSION', '1.5.1'); // Change the version in the header as well.
     43define('ACCP_PLUGIN_VERSION', '1.5.2'); // Change the version in the header as well.
    4444define( ACCP_PLUGIN_NAME, ACCP_PLUGIN_VERSION );
    4545
Note: See TracChangeset for help on using the changeset viewer.