WordPress.org

Make WordPress Core

Changeset 12913


Ignore:
Timestamp:
01/31/10 17:16:00 (5 years ago)
Author:
westi
Message:

Fix add_pages_page to use the correct parent menu. Fixes #12100.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r12903 r12913  
    794794 
    795795function add_pages_page( $page_title, $menu_title, $access_level, $file, $function = '' ) { 
    796     return add_submenu_page( 'edit-pages.php', $page_title, $menu_title, $access_level, $file, $function ); 
     796    return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $access_level, $file, $function ); 
    797797} 
    798798 
Note: See TracChangeset for help on using the changeset viewer.