| @@ 912-924 (lines=13) @@ | ||
| 909 | $this->add_my_home_submenu_item( $wp_admin_bar ); |
|
| 910 | ||
| 911 | // Stats. |
|
| 912 | if ( Jetpack::is_module_active( 'stats' ) && current_user_can( 'view_stats' ) ) { |
|
| 913 | $wp_admin_bar->add_menu( |
|
| 914 | array( |
|
| 915 | 'parent' => 'blog', |
|
| 916 | 'id' => 'blog-stats', |
|
| 917 | 'title' => esc_html__( 'Stats', 'jetpack' ), |
|
| 918 | 'href' => Redirect::get_url( 'calypso-stats' ), |
|
| 919 | 'meta' => array( |
|
| 920 | 'class' => 'mb-icon', |
|
| 921 | ), |
|
| 922 | ) |
|
| 923 | ); |
|
| 924 | } |
|
| 925 | ||
| 926 | if ( current_user_can( 'manage_options' ) ) { |
|
| 927 | $wp_admin_bar->add_menu( |
|
| @@ 1236-1248 (lines=13) @@ | ||
| 1233 | ) |
|
| 1234 | ); |
|
| 1235 | ||
| 1236 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
| 1237 | $wp_admin_bar->add_menu( |
|
| 1238 | array( |
|
| 1239 | 'parent' => 'configuration', |
|
| 1240 | 'id' => 'sharing', |
|
| 1241 | 'title' => esc_html__( 'Sharing', 'jetpack' ), |
|
| 1242 | 'href' => Redirect::get_url( 'calypso-sharing' ), |
|
| 1243 | 'meta' => array( |
|
| 1244 | 'class' => 'mb-icon', |
|
| 1245 | ), |
|
| 1246 | ) |
|
| 1247 | ); |
|
| 1248 | } |
|
| 1249 | ||
| 1250 | $people_title = $this->create_menu_item_pair( |
|
| 1251 | array( |
|