Redundant caps checks in wp_admin_bar_appearance_menu()
|Reported by:||duck_||Owned by:||duck_|
if ( ! current_user_can('switch_themes') && ! current_user_can( 'edit_theme_options' ) ) return; if ( ! current_user_can( 'edit_theme_options' ) ) return;
The first set can just be removed.
However, I think that the correct behaviour would be to display "Themes" if the user has either switch_themes or edit_theme_options and only display the rest if they have edit_theme_options.
Change History (4)
Note: See TracTickets for help on using tickets.