Make WordPress Core

Changeset 5377


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

Load order fixed.

Files:
2 edited

Legend:

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

    r5376 r5377  
    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         }
    1479     }
     1475        add_action( 'admin_head', 'wp_widgets_admin_page' );
     1476    }
     1477}
     1478
     1479function wp_widgets_admin_page() {
     1480    global $submenu;
     1481    $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' );
    14801482}
    14811483
  • trunk/wp-includes/functions.php

    r5376 r5377  
    15071507    if ( !function_exists( 'dynamic_sidebar' ) ) {
    15081508        require_once ABSPATH . WPINC . '/widgets.php';
    1509        
    1510         if ( strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) !== false && isset( $GLOBALS['submenu'] ) ) {
    1511             $GLOBALS['submenu']['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' );
    1512         }
    1513     }
     1509        add_action( 'admin_head', 'wp_widgets_admin_page' );
     1510    }
     1511}
     1512
     1513function wp_widgets_admin_page() {
     1514    global $submenu;
     1515    $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' );
    15141516}
    15151517
Note: See TracChangeset for help on using the changeset viewer.