rebase on oct-10-2023
This commit is contained in:
@@ -51,7 +51,7 @@ class Sidebar_Presenter extends Abstract_Presenter {
|
||||
<p>
|
||||
<?php
|
||||
/* translators: %1$s expands to an opening strong tag, %2$s expands to a closing strong tag */
|
||||
\printf( \esc_html__( 'Be the first to get %1$snew features & tools%2$s, before everyone else. Get %1$s 24/7 support%2$s and boost your website’s visibility.', 'wordpress-seo' ), '<strong>', '</strong>' );
|
||||
\printf( \esc_html__( 'Be more efficient in creating titles and meta descriptions with the help of AI. %1$sGet 24/7 support%2$s and boost your website’s visibility.', 'wordpress-seo' ), '<strong>', '</strong>' );
|
||||
?>
|
||||
</p>
|
||||
<p class="plugin-buy-button">
|
||||
|
||||
@@ -41,7 +41,7 @@ class Image_Presenter extends Abstract_Indexable_Presenter {
|
||||
}
|
||||
|
||||
$return = '';
|
||||
foreach ( $images as $image_index => $image_meta ) {
|
||||
foreach ( $images as $image_meta ) {
|
||||
$image_url = $image_meta['url'];
|
||||
|
||||
if ( \is_attachment() ) {
|
||||
|
||||
@@ -31,6 +31,7 @@ class Title_Presenter extends Abstract_Indexable_Tag_Presenter {
|
||||
*/
|
||||
public function get() {
|
||||
$title = $this->replace_vars( $this->presentation->open_graph_title );
|
||||
|
||||
/**
|
||||
* Filter: 'wpseo_opengraph_title' - Allow changing the Yoast SEO generated title.
|
||||
*
|
||||
|
||||
@@ -121,14 +121,13 @@ class Robots_Txt_Presenter extends Abstract_Presenter {
|
||||
private function handle_user_agents( $robots_txt_content ) {
|
||||
$user_agents = $this->robots_txt_helper->get_robots_txt_user_agents();
|
||||
|
||||
if ( \count( $user_agents ) !== 0 ) {
|
||||
$robots_txt_content = $this->add_user_agent_directives( $user_agents, $robots_txt_content );
|
||||
}
|
||||
else {
|
||||
if ( ! isset( $user_agents['*'] ) ) {
|
||||
$robots_txt_content .= 'User-agent: *' . \PHP_EOL;
|
||||
$robots_txt_content .= 'Disallow:' . \PHP_EOL . \PHP_EOL;
|
||||
}
|
||||
|
||||
$robots_txt_content = $this->add_user_agent_directives( $user_agents, $robots_txt_content );
|
||||
|
||||
return $robots_txt_content;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user