Plugin Directory

Changeset 3248578


Ignore:
Timestamp:
02/28/2025 03:45:56 PM (11 months ago)
Author:
Hakik
Message:

removed unnecessary nonce logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ideal-wp-login-logo-changer/trunk/ideal-wp-login-logo-changer.php

    r3247922 r3248578  
    8787add_action('admin_menu', 'iwllc_register_login_logo_setting_page');
    8888
    89 function iwllc_change_wordpress_login_logo()
    90 {
     89function iwllc_change_wordpress_login_logo(){
    9190    wp_enqueue_script('jquery');
    9291    wp_enqueue_media();
     
    9695
    9796    do_action('iwllc_settings_start');
    98 
    99     // Checking current user can manage options
    100     if (!current_user_can('manage_options')) {
    101         exit;
    102     }
    103 
    104     // Checking Nonce
    105     if ( isset($_POST['action']) && !wp_verify_nonce( sanitize_key( wp_unslash( 'action', 'action' ) ) )
    106     ) {
    107         exit;
    108     }
    10997
    11098    ?>
Note: See TracChangeset for help on using the changeset viewer.