| @@ 896-908 (lines=13) @@ | ||
| 893 | $this->add_my_home_submenu_item( $wp_admin_bar ); |
|
| 894 | ||
| 895 | // Stats. |
|
| 896 | if ( Jetpack::is_module_active( 'stats' ) && current_user_can( 'view_stats' ) ) { |
|
| 897 | $wp_admin_bar->add_menu( |
|
| 898 | array( |
|
| 899 | 'parent' => 'blog', |
|
| 900 | 'id' => 'blog-stats', |
|
| 901 | 'title' => esc_html__( 'Stats', 'jetpack' ), |
|
| 902 | 'href' => Redirect::get_url( 'calypso-stats' ), |
|
| 903 | 'meta' => array( |
|
| 904 | 'class' => 'mb-icon', |
|
| 905 | ), |
|
| 906 | ) |
|
| 907 | ); |
|
| 908 | } |
|
| 909 | ||
| 910 | if ( current_user_can( 'manage_options' ) ) { |
|
| 911 | $wp_admin_bar->add_menu( |
|
| @@ 1220-1232 (lines=13) @@ | ||
| 1217 | ) |
|
| 1218 | ); |
|
| 1219 | ||
| 1220 | if ( Jetpack::is_module_active( 'publicize' ) || Jetpack::is_module_active( 'sharedaddy' ) ) { |
|
| 1221 | $wp_admin_bar->add_menu( |
|
| 1222 | array( |
|
| 1223 | 'parent' => 'configuration', |
|
| 1224 | 'id' => 'sharing', |
|
| 1225 | 'title' => esc_html__( 'Sharing', 'jetpack' ), |
|
| 1226 | 'href' => Redirect::get_url( 'calypso-sharing' ), |
|
| 1227 | 'meta' => array( |
|
| 1228 | 'class' => 'mb-icon', |
|
| 1229 | ), |
|
| 1230 | ) |
|
| 1231 | ); |
|
| 1232 | } |
|
| 1233 | ||
| 1234 | $people_title = $this->create_menu_item_pair( |
|
| 1235 | array( |
|