Plugin Directory

Changeset 2894111


Ignore:
Timestamp:
04/05/2023 07:17:19 AM (3 years ago)
Author:
gleap
Message:

tagging version 9.0.0

Location:
gleap
Files:
4 edited
5 copied

Legend:

Unmodified
Added
Removed
  • gleap/tags/8.0.5/includes/class-gleap-activator.php

    r2775558 r2894111  
    2121 * @author     Gleap <hello@gleap.io>
    2222 */
    23 class Gleap_Activator {
     23class Gleap_Activator
     24{
    2425
    25     /**
    26      * Short Description. (use period)
    27      *
    28      * Long Description.
    29      *
    30      * @since    1.0.0
    31      */
    32     public static function activate() {
     26    /**
     27     * Short Description. (use period)
     28     *
     29     * Long Description.
     30     *
     31     * @since    1.0.0
     32     */
     33    public static function activate()
     34    {
    3335        $custom_cap = 'report_feedback';
    3436        $grant      = true;
    3537
    36         $roles = ['administrator', 'contributor', 'editor', 'author'];
     38        $roles = ['administrator', 'contributor', 'editor', 'author', 'shop_manager'];
    3739
    38         foreach ($roles as $roleName) {
    39             $role = get_role($roleName);
    40             if ($role && !$role->has_cap( $custom_cap )) {
    41                 $role->add_cap( $custom_cap, $grant );
     40        try {
     41            foreach ($roles as $roleName) {
     42                $role = get_role($roleName);
     43                if ($role && !$role->has_cap($custom_cap)) {
     44                    $role->add_cap($custom_cap, $grant);
     45                }
    4246            }
    43         }
    44     }
     47        } catch (Exception $e) {}
     48    }
    4549}
  • gleap/tags/9.0.0/README.txt

    r2813372 r2894111  
    33Tags: bug-tracking, bug-reporting, user-feedback, support, feedback, customer-feedback, live-chat, chat
    44Requires at least: 4.1.5
    5 Tested up to: 6.1.0
    6 Stable tag: 8.0.5
     5Tested up to: 6.2.0
     6Stable tag: 9.0.0
    77License: Commercial
    88License URI: https://github.com/Gleap/Wordpress/blob/main/README.txt
     
    3939== Changelog ==
    4040
     41= 9.0.0 =
     42* Updated to Gleap Widget 9.0.0
     43
    4144= 8.0.5 =
    4245* Improved the settings menu.
  • gleap/tags/9.0.0/gleap.php

    r2813372 r2894111  
    1717 * Plugin Name:       Gleap
    1818 * Description:       Gleap helps developers build the best software faster. It is your affordable in-app bug reporting tool for apps, websites and industrial applications.
    19  * Version:           8.0.5
     19 * Version:           9.0.0
    2020 * Author:            Gleap
    2121 * Author URI:        https://www.gleap.io
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'GLEAP_VERSION', '8.0.5' );
     38define( 'GLEAP_VERSION', '9.0.0' );
    3939
    4040/**
  • gleap/tags/9.0.0/public/class-gleap-public.php

    r2784731 r2894111  
    101101            $identify_script = "";
    102102            $gleap_identity_token = carbon_get_theme_option('gleap_identity_token');
    103             if (is_user_logged_in()) {
     103            if (is_user_logged_in() && $gleap_identity_token) {
    104104                $user_data = get_userdata(get_current_user_id());
    105105                $login = $user_data->user_login;
  • gleap/trunk/README.txt

    r2813372 r2894111  
    33Tags: bug-tracking, bug-reporting, user-feedback, support, feedback, customer-feedback, live-chat, chat
    44Requires at least: 4.1.5
    5 Tested up to: 6.1.0
    6 Stable tag: 8.0.5
     5Tested up to: 6.2.0
     6Stable tag: 9.0.0
    77License: Commercial
    88License URI: https://github.com/Gleap/Wordpress/blob/main/README.txt
     
    3939== Changelog ==
    4040
     41= 9.0.0 =
     42* Updated to Gleap Widget 9.0.0
     43
    4144= 8.0.5 =
    4245* Improved the settings menu.
  • gleap/trunk/gleap.php

    r2813372 r2894111  
    1717 * Plugin Name:       Gleap
    1818 * Description:       Gleap helps developers build the best software faster. It is your affordable in-app bug reporting tool for apps, websites and industrial applications.
    19  * Version:           8.0.5
     19 * Version:           9.0.0
    2020 * Author:            Gleap
    2121 * Author URI:        https://www.gleap.io
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'GLEAP_VERSION', '8.0.5' );
     38define( 'GLEAP_VERSION', '9.0.0' );
    3939
    4040/**
  • gleap/trunk/public/class-gleap-public.php

    r2784731 r2894111  
    101101            $identify_script = "";
    102102            $gleap_identity_token = carbon_get_theme_option('gleap_identity_token');
    103             if (is_user_logged_in()) {
     103            if (is_user_logged_in() && $gleap_identity_token) {
    104104                $user_data = get_userdata(get_current_user_id());
    105105                $login = $user_data->user_login;
Note: See TracChangeset for help on using the changeset viewer.