WordPress.org

Make WordPress Core

Changeset 5492


Ignore:
Timestamp:
05/19/07 04:38:51 (8 years ago)
Author:
rob1n
Message:

Check for switch_themes, not edit_themes. Props Denis de Bernardy. fixes #4292

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/functions.php

    r5463 r5492  
    15081508function wp_widgets_add_menu() { 
    15091509    global $submenu; 
    1510     $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' ); 
     1510    $submenu['themes.php'][7] = array( __( 'Widgets' ), 'switch_themes', 'widgets.php' ); 
    15111511    ksort($submenu['themes.php'], SORT_NUMERIC); 
    15121512} 
  • trunk/wp-includes/functions.php

    r5462 r5492  
    15271527function wp_widgets_add_menu() { 
    15281528    global $submenu; 
    1529     $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' ); 
     1529    $submenu['themes.php'][7] = array( __( 'Widgets' ), 'switch_themes', 'widgets.php' ); 
    15301530    ksort($submenu['themes.php'], SORT_NUMERIC); 
    15311531} 
Note: See TracChangeset for help on using the changeset viewer.