Plugin Directory

Changeset 1559440


Ignore:
Timestamp:
12/22/2016 01:49:01 AM (9 years ago)
Author:
miqrogroove
Message:

Value of admin_color may be invalid, so don't always check it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fix-admin-contrast/trunk/admin-contrast.php

    r1559420 r1559440  
    4848    $newest = 42;
    4949
    50     $color_scheme = get_user_option( 'admin_color' );
    51     if (substr($color_scheme, 0, 5) == 'high_') return; // This user has a high contrast scheme selected.  Do nothing for this user.
    52    
     50    // Did this user already choose my other plugin?  Give it priority.
     51    if (function_exists('miqro_high_contrast_admin')) {
     52        $color_scheme = get_user_option( 'admin_color' );
     53        if (substr($color_scheme, 0, 5) == 'high_') return;
     54    }
     55
    5356    $wpversion = get_bloginfo('version');
    5457    if (strlen($wpversion) < 3) return;
Note: See TracChangeset for help on using the changeset viewer.