Changeset 46868 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 12/09/2019 09:01:13 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r46696 r46868 1391 1391 $submenu[ $parent_slug ][] = $new_sub_menu; 1392 1392 } else { 1393 // If position is equal or higher than the number of items in the array, append the submenu. 1394 if ( $position >= count( $submenu[ $parent_slug ] ) ) { 1393 // Append the submenu if the parent item is not present in the submenu, 1394 // or if position is equal or higher than the number of items in the array. 1395 if ( ! isset( $submenu[ $parent_slug ] ) || $position >= count( $submenu[ $parent_slug ] ) ) { 1395 1396 $submenu[ $parent_slug ][] = $new_sub_menu; 1396 1397 } else {
Note: See TracChangeset
for help on using the changeset viewer.