| @@ 903-915 (lines=13) @@ | ||
| 900 | $this->add_my_home_submenu_item( $wp_admin_bar ); | |
| 901 | ||
| 902 | // Stats. | |
| 903 | 		if ( Jetpack::is_module_active( 'stats' ) && current_user_can( 'view_stats' ) ) { | |
| 904 | $wp_admin_bar->add_menu( | |
| 905 | array( | |
| 906 | 'parent' => 'blog', | |
| 907 | 'id' => 'blog-stats', | |
| 908 | 'title' => esc_html__( 'Stats', 'jetpack' ), | |
| 909 | 'href' => Redirect::get_url( 'calypso-stats' ), | |
| 910 | 'meta' => array( | |
| 911 | 'class' => 'mb-icon', | |
| 912 | ), | |
| 913 | ) | |
| 914 | ); | |
| 915 | } | |
| 916 | ||
| 917 | 		if ( current_user_can( 'manage_options' ) ) { | |
| 918 | $wp_admin_bar->add_menu( | |
| @@ 1227-1239 (lines=13) @@ | ||
| 1224 | ) | |
| 1225 | ); | |
| 1226 | ||
| 1227 | 			if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { | |
| 1228 | $wp_admin_bar->add_menu( | |
| 1229 | array( | |
| 1230 | 'parent' => 'configuration', | |
| 1231 | 'id' => 'sharing', | |
| 1232 | 'title' => esc_html__( 'Sharing', 'jetpack' ), | |
| 1233 | 'href' => Redirect::get_url( 'calypso-sharing' ), | |
| 1234 | 'meta' => array( | |
| 1235 | 'class' => 'mb-icon', | |
| 1236 | ), | |
| 1237 | ) | |
| 1238 | ); | |
| 1239 | } | |
| 1240 | ||
| 1241 | $people_title = $this->create_menu_item_pair( | |
| 1242 | array( | |