Ticket #14159: 14159.diff
File 14159.diff, 3.1 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/plugin.php
998 998 999 999 /** 1000 1000 * Add sub menu page to the tools main menu. 1001 *1001 * 1002 1002 * This function takes a capability which will be used to determine whether 1003 1003 * or not a page is included in the menu. 1004 1004 * … … 1017 1017 1018 1018 /** 1019 1019 * Add sub menu page to the options main menu. 1020 *1020 * 1021 1021 * This function takes a capability which will be used to determine whether 1022 1022 * or not a page is included in the menu. 1023 1023 * … … 1036 1036 1037 1037 /** 1038 1038 * Add sub menu page to the themes main menu. 1039 *1039 * 1040 1040 * This function takes a capability which will be used to determine whether 1041 1041 * or not a page is included in the menu. 1042 1042 * … … 1055 1055 1056 1056 /** 1057 1057 * Add sub menu page to the plugins main menu. 1058 *1058 * 1059 1059 * This function takes a capability which will be used to determine whether 1060 1060 * or not a page is included in the menu. 1061 1061 * … … 1074 1074 1075 1075 /** 1076 1076 * Add sub menu page to the Users/Profile main menu. 1077 *1077 * 1078 1078 * This function takes a capability which will be used to determine whether 1079 1079 * or not a page is included in the menu. 1080 1080 * … … 1096 1096 } 1097 1097 /** 1098 1098 * Add sub menu page to the Dashboard main menu. 1099 *1099 * 1100 1100 * This function takes a capability which will be used to determine whether 1101 1101 * or not a page is included in the menu. 1102 1102 * … … 1115 1115 1116 1116 /** 1117 1117 * Add sub menu page to the posts main menu. 1118 *1118 * 1119 1119 * This function takes a capability which will be used to determine whether 1120 1120 * or not a page is included in the menu. 1121 1121 * … … 1134 1134 1135 1135 /** 1136 1136 * Add sub menu page to the media main menu. 1137 *1137 * 1138 1138 * This function takes a capability which will be used to determine whether 1139 1139 * or not a page is included in the menu. 1140 1140 * … … 1153 1153 1154 1154 /** 1155 1155 * Add sub menu page to the links main menu. 1156 *1156 * 1157 1157 * This function takes a capability which will be used to determine whether 1158 1158 * or not a page is included in the menu. 1159 1159 * … … 1172 1172 1173 1173 /** 1174 1174 * Add sub menu page to the pages main menu. 1175 *1175 * 1176 1176 * This function takes a capability which will be used to determine whether 1177 1177 * or not a page is included in the menu. 1178 1178 * … … 1191 1191 1192 1192 /** 1193 1193 * Add sub menu page to the comments main menu. 1194 *1194 * 1195 1195 * This function takes a capability which will be used to determine whether 1196 1196 * or not a page is included in the menu. 1197 1197 * … … 1270 1270 global $_parent_pages; 1271 1271 1272 1272 if ( isset( $_parent_pages[$menu_slug] ) ) { 1273 if ( $_parent_pages[$menu_slug] ) { 1274 $url = admin_url( add_query_arg( 'page', $menu_slug, $_parent_pages[$menu_slug] ) ); 1273 $parent_slug = $_parent_pages[$menu_slug]; 1274 if ( $parent_slug && ! isset( $_parent_pages[$parent_slug] ) ) { 1275 $url = admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) ); 1275 1276 } else { 1276 $url = admin_url( 'admin.php?page=' . $menu_slug);1277 $url = admin_url( 'admin.php?page=' . $menu_slug ); 1277 1278 } 1278 1279 } else { 1279 1280 $url = ''; … … 1684 1685 wp_nonce_field("$option_group-options"); 1685 1686 } 1686 1687 1687 ?> 1688 No newline at end of file 1688 ?>