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

@@ -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 websites 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 websites visibility.', 'wordpress-seo' ), '<strong>', '</strong>' );
?>
</p>
<p class="plugin-buy-button">

View File

@@ -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() ) {

View File

@@ -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.
*

View File

@@ -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;
}