Make WordPress Core


Ignore:
Timestamp:
03/01/2004 06:13:32 AM (21 years ago)
Author:
saxmatt
Message:

Migration to get_settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r945 r956  
    1414        if ((substr($self, -20) == substr($item[1], -20) && empty($parent_file)) || ($parent_file && ($item[1] == $parent_file))) $class = ' class="current"';
    1515        if ($user_level >= $item[0]) {
    16             if (('upload.php' == $item[1] && $use_fileupload && ($user_level >= $fileupload_minlevel)
    17          && (in_array($user_login, explode(' ', $allowed_users)) || (trim($fileupload_allowedusers)==""))) || 'upload.php' != $item[1])
     16            if (('upload.php' == $item[1] && get_settings('use_fileupload') && ($user_level >= get_settings('fileupload_minlevel'))
     17         && (in_array($user_login, explode(' ', $allowed_users)) || (trim(get_settings('fileupload_allowedusers'))==''))) || 'upload.php' != $item[1])
    1818                echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
    1919        }
Note: See TracChangeset for help on using the changeset viewer.