@@ 567-578 (lines=12) @@ | ||
564 | } |
|
565 | ||
566 | // Site Preview |
|
567 | if ( is_admin() ) { |
|
568 | $wp_admin_bar->add_menu( array( |
|
569 | 'parent' => 'blog', |
|
570 | 'id' => 'site-preview', |
|
571 | 'title' => __( 'Site Preview' ), |
|
572 | 'href' => home_url(), |
|
573 | 'meta' => array( |
|
574 | 'class' => 'mb-icon', |
|
575 | 'target' => '_blank', |
|
576 | ), |
|
577 | ) ); |
|
578 | } |
|
579 | ||
580 | // Stats |
|
581 | if ( Jetpack::is_module_active( 'stats' ) ) { |
|
@@ 930-940 (lines=11) @@ | ||
927 | ), |
|
928 | ) ); |
|
929 | ||
930 | if ( ! is_admin() ) { |
|
931 | $wp_admin_bar->add_menu( array( |
|
932 | 'parent' => 'configuration', |
|
933 | 'id' => 'legacy-dashboard', |
|
934 | 'title' => __( 'Dashboard', 'jetpack' ), |
|
935 | 'href' => admin_url(), |
|
936 | 'meta' => array( |
|
937 | 'class' => 'mb-icon', |
|
938 | ), |
|
939 | ) ); |
|
940 | } |
|
941 | ||
942 | // Restore dashboard menu toggle that is needed on mobile views. |
|
943 | if ( is_admin() ) { |