| 13 | $submenu[ 'index.php' ][0] = array( __('Home'), 'read', 'index.php' ); |
| 14 | |
| 15 | $update_data = wp_get_update_data(); |
| 16 | if ( $update_data['counts']['total'] ) { |
| 17 | $submenu[ 'index.php' ][10] = array( sprintf( __( 'Available Updates %s' ), "<span class='update-plugins count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n($update_data['counts']['total']) . "</span></span>" ), 'update_core', 'update-core.php' ); |
| 18 | } else { |
| 19 | $submenu[ 'index.php' ][10] = array( __( 'Available Updates' ), 'update_core', 'update-core.php' ); |
| 20 | } |
| 21 | unset($update_data); |
| 22 | $submenu[ 'index.php' ][15] = array( __( 'Upgrade Network' ), 'manage_network', 'upgrade.php' ); |
| 23 | |
50 | | if ( $update_data['counts']['total'] ) { |
51 | | $menu[30] = array( sprintf( __( 'Updates %s' ), "<span class='update-plugins count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n($update_data['counts']['total']) . "</span></span>" ), 'manage_network', 'upgrade.php', '', 'menu-top menu-icon-tools', 'menu-update', 'dashicons-admin-tools' ); |
52 | | } else { |
53 | | $menu[30] = array( __( 'Updates' ), 'manage_network', 'upgrade.php', '', 'menu-top menu-icon-tools', 'menu-update', 'dashicons-admin-tools' ); |
54 | | } |
55 | | |
56 | | unset($update_data); |
57 | | |
58 | | $submenu[ 'upgrade.php' ][10] = array( __( 'Available Updates' ), 'update_core', 'update-core.php' ); |
59 | | $submenu[ 'upgrade.php' ][15] = array( __( 'Upgrade Network' ), 'manage_network', 'upgrade.php' ); |
60 | | |