Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -23,35 +23,35 @@ class WPSEO_Admin_Bar_Menu implements WPSEO_WordPress_Integration {
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const MENU_IDENTIFIER = 'wpseo-menu';
|
||||
public const MENU_IDENTIFIER = 'wpseo-menu';
|
||||
|
||||
/**
|
||||
* The identifier used for the Keyword Research submenu.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const KEYWORD_RESEARCH_SUBMENU_IDENTIFIER = 'wpseo-kwresearch';
|
||||
public const KEYWORD_RESEARCH_SUBMENU_IDENTIFIER = 'wpseo-kwresearch';
|
||||
|
||||
/**
|
||||
* The identifier used for the Analysis submenu.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const ANALYSIS_SUBMENU_IDENTIFIER = 'wpseo-analysis';
|
||||
public const ANALYSIS_SUBMENU_IDENTIFIER = 'wpseo-analysis';
|
||||
|
||||
/**
|
||||
* The identifier used for the Settings submenu.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const SETTINGS_SUBMENU_IDENTIFIER = 'wpseo-settings';
|
||||
public const SETTINGS_SUBMENU_IDENTIFIER = 'wpseo-settings';
|
||||
|
||||
/**
|
||||
* The identifier used for the Network Settings submenu.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const NETWORK_SETTINGS_SUBMENU_IDENTIFIER = 'wpseo-network-settings';
|
||||
public const NETWORK_SETTINGS_SUBMENU_IDENTIFIER = 'wpseo-network-settings';
|
||||
|
||||
/**
|
||||
* Asset manager instance.
|
||||
@@ -119,11 +119,11 @@ class WPSEO_Admin_Bar_Menu implements WPSEO_WordPress_Integration {
|
||||
* @param WPSEO_Shortlinker|null $shortlinker The shortlinker.
|
||||
*/
|
||||
public function __construct(
|
||||
WPSEO_Admin_Asset_Manager $asset_manager = null,
|
||||
Indexable_Repository $indexable_repository = null,
|
||||
Score_Icon_Helper $score_icon_helper = null,
|
||||
Product_Helper $product_helper = null,
|
||||
WPSEO_Shortlinker $shortlinker = null
|
||||
?WPSEO_Admin_Asset_Manager $asset_manager = null,
|
||||
?Indexable_Repository $indexable_repository = null,
|
||||
?Score_Icon_Helper $score_icon_helper = null,
|
||||
?Product_Helper $product_helper = null,
|
||||
?WPSEO_Shortlinker $shortlinker = null
|
||||
) {
|
||||
if ( ! $asset_manager ) {
|
||||
$asset_manager = new WPSEO_Admin_Asset_Manager();
|
||||
@@ -753,7 +753,7 @@ class WPSEO_Admin_Bar_Menu implements WPSEO_WordPress_Integration {
|
||||
/**
|
||||
* Filter: 'wpseo_use_page_analysis' Determines if the analysis should be enabled.
|
||||
*
|
||||
* @api bool Determines if the analysis should be enabled.
|
||||
* @param bool $enabled Determines if the analysis should be enabled.
|
||||
*/
|
||||
if ( apply_filters( 'wpseo_use_page_analysis', true ) !== true ) {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user