WordPress.org

Make WordPress Core

Ticket #16048: hook-_wp_menu_output.diff

File hook-_wp_menu_output.diff, 764 bytes (added by mikeschinkel, 3 years ago)

Makes _wp_menu_output() Hookable

  • wp-admin/menu-header.php

     
    167167 
    168168<?php 
    169169 
    170 _wp_menu_output( $menu, $submenu ); 
    171 do_action( 'adminmenu' ); 
     170do_action( 'adminmenu', $menu, $submenu ); 
    172171 
    173172?> 
    174173</ul> 
  • wp-admin/admin.php

     
    108108if ( current_user_can( 'manage_options' ) ) 
    109109        @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', '256M' ) ); 
    110110 
     111add_action('adminmenu','_wp_menu_output',0,2); 
    111112do_action('admin_init'); 
    112113 
    113114if ( isset($plugin_page) ) {