Make WordPress Core


Ignore:
Timestamp:
05/03/2007 12:43:57 AM (19 years ago)
Author:
rob1n
Message:

Don't show Widgets admin page if core widgets aren't enabled. fixes #4218

File:
1 edited

Legend:

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

    r5371 r5376  
    14731473        if ( !function_exists( 'dynamic_sidebar' ) ) {
    14741474                require_once ABSPATH . WPINC . '/widgets.php';
     1475               
     1476                if ( strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) !== false && isset( $GLOBALS['submenu'] ) ) {
     1477                        $GLOBALS['submenu']['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' );
     1478                }
    14751479        }
    14761480}
Note: See TracChangeset for help on using the changeset viewer.