: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'contenteditable' => true,
'formnovalidate' => true,
* Below are attributes that are needed for backwards compatibility (WP < 5.1).
* They are used for the social media image in the metabox.
* These can be removed once we move to the React versions of the social previews.
'data-target-id' => true,
'contenteditable' => true,
// Add the global allowed attributes to each html element.
$input_tags = array_map( '_wp_add_global_attributes', $input_tags );
return array_merge_recursive( $allowed_post_tags, $input_tags );
* Gets an array of enabled features.
* @return string[] The array of enabled features.
public static function retrieve_enabled_features() {
* The feature flag integration.
* @var Feature_Flag_Integration $feature_flag_integration;
$feature_flag_integration = YoastSEO()->classes->get( Feature_Flag_Integration::class );
return $feature_flag_integration->get_enabled_features();