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