rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -7,6 +7,7 @@
use Yoast\WP\SEO\Helpers\Product_Helper;
use Yoast\WP\SEO\Helpers\Score_Icon_Helper;
use Yoast\WP\SEO\Integrations\Support_Integration;
use Yoast\WP\SEO\Models\Indexable;
use Yoast\WP\SEO\Presenters\Admin\Premium_Badge_Presenter;
use Yoast\WP\SEO\Repositories\Indexable_Repository;
@@ -541,6 +542,13 @@ class WPSEO_Admin_Bar_Menu implements WPSEO_WordPress_Integration {
'title' => __( 'Help', 'wordpress-seo' ),
'meta' => [ 'tabindex' => '0' ],
];
if ( current_user_can( Support_Integration::CAPABILITY ) ) {
$menu_args['href'] = admin_url( 'admin.php?page=' . Support_Integration::PAGE );
$wp_admin_bar->add_menu( $menu_args );
return;
}
$wp_admin_bar->add_menu( $menu_args );
$submenu_items = [