: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Generates and displays the React root element for a metabox section.
class WPSEO_Metabox_Section_Readability implements WPSEO_Metabox_Section {
* Name of the section, used as an identifier in the HTML.
public $name = 'readability';
* Outputs the section link.
public function display_link() {
'<li role="presentation"><a role="tab" href="#wpseo-meta-section-%1$s" id="wpseo-meta-tab-%1$s" aria-controls="wpseo-meta-section-%1$s" class="wpseo-meta-section-link">
<div class="wpseo-score-icon-container" id="wpseo-readability-score-icon"></div><span>%2$s</span></a></li>',
esc_html__( 'Readability', 'wordpress-seo' )
* Outputs the section content.
public function display_content() {
'<div role="tabpanel" id="wpseo-meta-section-%1$s" aria-labelledby="wpseo-meta-tab-%1$s" tabindex="0" class="wpseo-meta-section">',
echo '<div id="wpseo-metabox-readability-root" class="wpseo-metabox-root"></div>', '</div>';