Plugin Directory

Changeset 2183997


Ignore:
Timestamp:
10/31/2019 04:26:06 PM (6 years ago)
Author:
wpemaker
Message:

correction

Location:
download-sender/trunk/includes/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • download-sender/trunk/includes/admin/class-ajax-request.php

    r2183907 r2183997  
    248248        $to = isset($data['to_email']) ? $data['to_email'] : sanitize_email($_POST['email_address']);
    249249
     250        $hide_to_logged = $options->get_option('hide_for_logged');     
     251        if ( $hide_to_logged == true && is_user_logged_in() ) {
     252            $enable_recaptcha = false;
     253        }
     254       
    250255        // Check if user was not verified by recaptcha.
    251256        if ( is_downloadsender_premium_activated() && $enable_recaptcha == true ) {
  • download-sender/trunk/includes/admin/class-options.php

    r2183907 r2183997  
    3838            'disable_logs'       => false,
    3939            'enable_recaptcha'   => false,
     40            'hide_for_logged'    => false,
    4041            'downloads_page'     => get_home_url().'/ds-downloads',
    4142            'wrong_file'         => __('Sorry, something went wrong!', 'download-sender'),
Note: See TracChangeset for help on using the changeset viewer.