Ticket #21655: 21655.patch
File 21655.patch, 754 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 $menu_file = $item[2]; 173 if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) 174 $menu_file = substr( $menu_file, 0, $pos ); 175 if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) { 173 176 $options[] = "<a href='{$item[2]}'$class>{$item[0]}</a>"; 174 177 } else { 175 178 $options[] = "<a href='themes.php?page={$item[2]}'$class>{$item[0]}</a>";