Plugin Directory

Changeset 2856443


Ignore:
Timestamp:
01/29/2023 10:20:17 AM (3 years ago)
Author:
andreadegiovine
Message:

fix role creation

Location:
cloud-customer-area
Files:
19 added
3 edited

Legend:

Unmodified
Added
Removed
  • cloud-customer-area/trunk/cloud-customer-area.php

    r2801979 r2856443  
    1111Text Domain: cloud-customer-area
    1212Domain Path: /languages/
    13 Version: 2.0.4
     13Version: 2.0.5
    1414*/
    1515
     
    2929}
    3030
     31register_activation_hook(__FILE__, function () {
     32    add_role('customer_area_user', __('Cloud Area User', 'cloud-customer-area'), []);
     33});
     34
    3135$main = new \CloudCustomerArea\Inc\Main();
    3236$main->init_plugin();
  • cloud-customer-area/trunk/inc/main.php

    r2801979 r2856443  
    164164    {
    165165        // Plugin
    166         register_activation_hook(__FILE__, function () {
    167             add_role('customer_area_user', __('Cloud Area User', 'cloud-customer-area'), array());
    168         });
    169166        add_action('after_setup_theme', function () {
    170167            if (current_user_can('customer_area_user') && !is_admin()) {
  • cloud-customer-area/trunk/readme.txt

    r2856435 r2856443  
    55Requires at least: 4.0
    66Tested up to: 6.1
    7 Stable tag: 2.0.4
     7Stable tag: 2.0.5
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    101101== Changelog ==
    102102
     103= 2.0.5 =
     104* Plugin role creation fix [thanks to Kmzerowebmarketing]
     105
    103106= 2.0.4 =
    104107* No files fix
     
    139142
    140143== Upgrade Notice ==
     144
     145= 2.0.5 =
     146Plugin role creation fix [thanks to Kmzerowebmarketing]
    141147
    142148= 2.0.4 =
Note: See TracChangeset for help on using the changeset viewer.