Ticket #21655: edit_theme_options-check.patch
File edit_theme_options-check.patch, 651 bytes (added by , 12 years ago) |
---|
-
wp-admin/themes.php
169 169 else 170 170 $options[] = "<a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>"; 171 171 } else if ( current_user_can($item[1]) ) { 172 if ( file_exists(ABSPATH . 'wp-admin/' . $item[2]) ) {172 if ( file_exists(ABSPATH . 'wp-admin/' . $item[2]) || 'edit_theme_options' != $item[1] ) { 173 173 $options[] = "<a href='{$item[2]}'$class>{$item[0]}</a>"; 174 174 } else { 175 175 $options[] = "<a href='themes.php?page={$item[2]}'$class>{$item[0]}</a>";