Changeset 46869 for branches/5.3/src/wp-admin/includes/plugin.php
- Timestamp:
- 12/09/2019 09:04:07 PM (7 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-admin/includes/plugin.php
r46570 r46869 1389 1389 $submenu[ $parent_slug ][] = $new_sub_menu; 1390 1390 } else { 1391 // If position is equal or higher than the number of items in the array, append the submenu. 1392 if ( $position >= count( $submenu[ $parent_slug ] ) ) { 1391 // Append the submenu if the parent item is not present in the submenu, 1392 // or if position is equal or higher than the number of items in the array. 1393 if ( ! isset( $submenu[ $parent_slug ] ) || $position >= count( $submenu[ $parent_slug ] ) ) { 1393 1394 $submenu[ $parent_slug ][] = $new_sub_menu; 1394 1395 } else {
Note: See TracChangeset
for help on using the changeset viewer.