Changeset 16829
- Timestamp:
- 12/09/2010 04:02:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r16758 r16829 1009 1009 /** 1010 1010 * Add sub menu page to the tools main menu. 1011 *1011 * 1012 1012 * This function takes a capability which will be used to determine whether 1013 1013 * or not a page is included in the menu. … … 1028 1028 /** 1029 1029 * Add sub menu page to the options main menu. 1030 *1030 * 1031 1031 * This function takes a capability which will be used to determine whether 1032 1032 * or not a page is included in the menu. … … 1047 1047 /** 1048 1048 * Add sub menu page to the themes main menu. 1049 *1049 * 1050 1050 * This function takes a capability which will be used to determine whether 1051 1051 * or not a page is included in the menu. … … 1066 1066 /** 1067 1067 * Add sub menu page to the plugins main menu. 1068 *1068 * 1069 1069 * This function takes a capability which will be used to determine whether 1070 1070 * or not a page is included in the menu. … … 1085 1085 /** 1086 1086 * Add sub menu page to the Users/Profile main menu. 1087 *1087 * 1088 1088 * This function takes a capability which will be used to determine whether 1089 1089 * or not a page is included in the menu. … … 1107 1107 /** 1108 1108 * Add sub menu page to the Dashboard main menu. 1109 *1109 * 1110 1110 * This function takes a capability which will be used to determine whether 1111 1111 * or not a page is included in the menu. … … 1126 1126 /** 1127 1127 * Add sub menu page to the posts main menu. 1128 *1128 * 1129 1129 * This function takes a capability which will be used to determine whether 1130 1130 * or not a page is included in the menu. … … 1145 1145 /** 1146 1146 * Add sub menu page to the media main menu. 1147 *1147 * 1148 1148 * This function takes a capability which will be used to determine whether 1149 1149 * or not a page is included in the menu. … … 1164 1164 /** 1165 1165 * Add sub menu page to the links main menu. 1166 *1166 * 1167 1167 * This function takes a capability which will be used to determine whether 1168 1168 * or not a page is included in the menu. … … 1183 1183 /** 1184 1184 * Add sub menu page to the pages main menu. 1185 *1185 * 1186 1186 * This function takes a capability which will be used to determine whether 1187 1187 * or not a page is included in the menu. … … 1202 1202 /** 1203 1203 * Add sub menu page to the comments main menu. 1204 *1204 * 1205 1205 * This function takes a capability which will be used to determine whether 1206 1206 * or not a page is included in the menu. … … 1281 1281 1282 1282 if ( isset( $_parent_pages[$menu_slug] ) ) { 1283 if ( $_parent_pages[$menu_slug] ) { 1284 $url = admin_url( add_query_arg( 'page', $menu_slug, $_parent_pages[$menu_slug] ) ); 1283 $parent_slug = $_parent_pages[$menu_slug]; 1284 if ( $parent_slug && ! isset( $_parent_pages[$parent_slug] ) ) { 1285 $url = admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) ); 1285 1286 } else { 1286 $url = admin_url( 'admin.php?page=' . $menu_slug);1287 $url = admin_url( 'admin.php?page=' . $menu_slug ); 1287 1288 } 1288 1289 } else {
Note: See TracChangeset
for help on using the changeset viewer.