Merged in feature/Plugin-updates (pull request #19)

Updated plugins

* Updated plugins
This commit is contained in:
Tony Volpe
2024-01-10 21:13:38 +00:00
parent 768ebbdc75
commit 14f187dd80
168 changed files with 9219 additions and 9861 deletions

View File

@@ -39,6 +39,9 @@ class WPSEO_Expose_Shortlinks implements WPSEO_WordPress_Integration {
'shortlinks.upsell.sidebar.keyphrase_distribution' => 'https://yoa.st/keyphrase-distribution-sidebar',
'shortlinks.upsell.sidebar.word_complexity' => 'https://yoa.st/word-complexity-sidebar',
'shortlinks.upsell.sidebar.internal_linking_suggestions' => 'https://yoa.st/internal-linking-suggestions-sidebar',
'shortlinks.upsell.sidebar.highlighting_seo_analysis' => 'https://yoa.st/highlighting-seo-analysis',
'shortlinks.upsell.sidebar.highlighting_readability_analysis' => 'https://yoa.st/highlighting-readability-analysis',
'shortlinks.upsell.sidebar.highlighting_inclusive_analysis' => 'https://yoa.st/highlighting-inclusive-analysis',
'shortlinks.upsell.metabox.news' => 'https://yoa.st/get-news-metabox',
'shortlinks.upsell.metabox.go_premium' => 'https://yoa.st/pe-premium-page',
'shortlinks.upsell.metabox.focus_keyword_synonyms_button' => 'https://yoa.st/keyword-synonyms-popup',

View File

@@ -15,14 +15,14 @@ class WPSEO_Gutenberg_Compatibility {
*
* @var string
*/
const CURRENT_RELEASE = '17.1.3';
const CURRENT_RELEASE = '17.4.0';
/**
* The minimally supported version of Gutenberg by the plugin.
*
* @var string
*/
const MINIMUM_SUPPORTED = '17.1.3';
const MINIMUM_SUPPORTED = '17.4.0';
/**
* Holds the current version.

View File

@@ -53,13 +53,42 @@ class WPSEO_Premium_Upsell_Admin_Block {
$url = WPSEO_Shortlinker::get( 'https://yoa.st/17h' );
$arguments = [
'<strong>' . esc_html__( 'Use AI', 'wordpress-seo' ) . '</strong>: ' . esc_html__( 'Quickly create titles & meta descriptions', 'wordpress-seo' ),
'<strong>' . esc_html__( 'No more dead links', 'wordpress-seo' ) . '</strong>: ' . esc_html__( 'Easy redirect manager', 'wordpress-seo' ),
'<strong>' . esc_html__( 'Superfast internal linking suggestions', 'wordpress-seo' ) . '</strong>',
'<strong>' . esc_html__( 'Social media preview', 'wordpress-seo' ) . '</strong>: ' . esc_html__( 'Facebook & Twitter', 'wordpress-seo' ),
'<strong>' . esc_html__( 'Multiple keyphrases', 'wordpress-seo' ) . '</strong>: ' . esc_html__( 'Increase your SEO reach', 'wordpress-seo' ),
'<strong>' . esc_html__( 'SEO Workouts', 'wordpress-seo' ) . '</strong>: ' . esc_html__( 'Get guided in routine SEO tasks', 'wordpress-seo' ),
'<strong>' . esc_html__( '24/7 email support', 'wordpress-seo' ) . '</strong>',
sprintf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sAI%2$s: Better SEO titles and meta descriptions, faster.', 'wordpress-seo' ),
'<strong>',
'</strong>'
),
sprintf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sMultiple keywords%2$s: Rank higher for more searches.', 'wordpress-seo' ),
'<strong>',
'</strong>'
),
sprintf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sSuper fast%2$s internal linking suggestions.', 'wordpress-seo' ),
'<strong>',
'</strong>'
),
sprintf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sNo more broken links%2$s: Automatic redirect manager.', 'wordpress-seo' ),
'<strong>',
'</strong>'
),
sprintf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sAppealing social previews%2$s people actually want to click on.', 'wordpress-seo' ),
'<strong>',
'</strong>'
),
sprintf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$s24/7 support%2$s: Also on evenings and weekends.', 'wordpress-seo' ),
'<strong>',
'</strong>'
),
'<strong>' . esc_html__( 'No ads!', 'wordpress-seo' ) . '</strong>',
];
@@ -68,7 +97,7 @@ class WPSEO_Premium_Upsell_Admin_Block {
$class = $this->get_html_class();
/* translators: %s expands to Yoast SEO Premium */
$button_text = YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ? \esc_html__( 'Claim your 30% off now!', 'wordpress-seo' ) : sprintf( esc_html__( 'Get %s', 'wordpress-seo' ), 'Yoast SEO Premium' );
$button_text = YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) ? \esc_html__( 'Claim your 30% off now!', 'wordpress-seo' ) : sprintf( esc_html__( 'Explore %s now!', 'wordpress-seo' ), 'Yoast SEO Premium' );
/* translators: Hidden accessibility text. */
$button_text .= '<span class="screen-reader-text">' . esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' ) . '</span>' .
'<span aria-hidden="true" class="yoast-button-upsell__caret"></span>';

View File

@@ -31,11 +31,11 @@ $extensions = [
'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zt' ),
'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zs' ),
'title' => 'Local SEO',
'display_title' => __( 'Maximize your visibility for local searches', 'wordpress-seo' ),
'display_title' => __( 'Stand out for local searches', 'wordpress-seo' ),
'desc' => __( 'Rank better locally and in Google Maps, without breaking a sweat!', 'wordpress-seo' ),
'image' => plugins_url( 'images/local_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
'benefits' => [
__( 'Attract more local customers to your website and physical store', 'wordpress-seo' ),
__( 'Attract more customers to your site and physical store', 'wordpress-seo' ),
__( 'Automatically get technical SEO best practices for local businesses', 'wordpress-seo' ),
__( 'Easily add maps, address finders, and opening hours to your content', 'wordpress-seo' ),
__( 'Optimize your business for multiple locations', 'wordpress-seo' ),
@@ -45,14 +45,14 @@ $extensions = [
'buyUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zx/' ),
'infoUrl' => WPSEO_Shortlinker::get( 'https://yoa.st/zw/' ),
'title' => 'Video SEO',
'display_title' => __( 'Drive more traffic to your videos', 'wordpress-seo' ),
'display_title' => __( 'Drive more views to your videos', 'wordpress-seo' ),
'desc' => __( 'Optimize your videos to show them off in search results and get more clicks!', 'wordpress-seo' ),
'image' => plugins_url( 'images/video_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
'benefits' => [
__( 'Know that Google discovers your videos', 'wordpress-seo' ),
__( 'Load pages faster that include videos', 'wordpress-seo' ),
__( 'Automatically get technical SEO best practices for video content', 'wordpress-seo' ),
__( 'Make sure your videos load quickly for users', 'wordpress-seo' ),
__( 'Make your videos responsive for all screen sizes', 'wordpress-seo' ),
__( 'Get XML video sitemaps', 'wordpress-seo' ),
__( 'Optimize your video previews & thumbnails', 'wordpress-seo' ),
],
],
WPSEO_Addon_Manager::NEWS_SLUG => [
@@ -66,7 +66,7 @@ $extensions = [
__( 'Optimize your site for Google News', 'wordpress-seo' ),
__( 'Ping Google on the publication of a new post', 'wordpress-seo' ),
__( 'Add all necessary schema.org markup', 'wordpress-seo' ),
__( 'Get XML news sitemaps', 'wordpress-seo' ),
__( 'Get XML sitemaps', 'wordpress-seo' ),
],
],
];
@@ -82,11 +82,12 @@ if ( YoastSEO()->helpers->woocommerce->is_active() ) {
'desc' => sprintf( __( 'Seamlessly integrate WooCommerce with %1$s and get extra features!', 'wordpress-seo' ), 'Yoast SEO' ),
'image' => plugins_url( 'images/woo_plugin_assistant.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
'benefits' => [
__( 'Write product pages that rank with the enhanced SEO analysis', 'wordpress-seo' ),
__( 'Increase clicks of Google search with rich results', 'wordpress-seo' ),
__( 'Write product pages that rank using the SEO analysis', 'wordpress-seo' ),
__( 'Increase Google clicks with rich results', 'wordpress-seo' ),
__( 'Add global identifiers for variable products', 'wordpress-seo' ),
/* translators: %1$s expands to Yoast SEO, %2$s expands to WooCommerce */
sprintf( __( 'Seamless integration between %1$s and %2$s', 'wordpress-seo' ), 'Yoast SEO', 'WooCommerce' ),
__( 'Turn more visitors into customers!', 'wordpress-seo' ),
],
'buy_button' => 'WooCommerce SEO',
];
@@ -107,9 +108,9 @@ $extensions['yoast-seo-plugin-subscription'] = [
'desc' => '',
'image' => plugins_url( 'images/plugin_subscription.svg?v=' . WPSEO_VERSION, WPSEO_FILE ),
'benefits' => [
__( 'Get all 5 Yoast plugins for WordPress with a big discount', 'wordpress-seo' ),
__( 'Reach new customers that live near your business', 'wordpress-seo' ),
__( 'Drive more traffic with your videos', 'wordpress-seo' ),
__( 'Get all 5 Yoast plugins for WordPress at a big discount', 'wordpress-seo' ),
__( 'Reach new customers who live near your business', 'wordpress-seo' ),
__( 'Drive more views to your videos', 'wordpress-seo' ),
__( 'Rank higher in Google\'s news carousel', 'wordpress-seo' ),
__( 'Drive more traffic to your online store', 'wordpress-seo' ),
@@ -152,14 +153,7 @@ if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-202
<section class="yoast-seo-premium-extension">
<?php echo $premium_sale_badge; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: Output is already escaped ?>
<h2>
<?php
printf(
/* translators: 1: expands to Yoast SEO Premium */
esc_html__( 'Drive more traffic to your site with %1$s', 'wordpress-seo' ),
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
$premium_extension['title']
);
?>
<?php esc_html_e( 'Rank higher in search results', 'wordpress-seo' ); ?>
<img alt="" width="100" height="100" src="<?php echo esc_url( $premium_extension['image'] ); ?>"/>
</h2>
<?php
@@ -167,36 +161,64 @@ if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-202
?>
<ul class="yoast-seo-premium-benefits yoast-list--usp">
<li class="yoast-seo-premium-benefits__item">
<span class="yoast-seo-premium-benefits__title"><?php esc_html_e( 'Be more efficient in creating content', 'wordpress-seo' ); ?></span>
<span class="yoast-seo-premium-benefits__description"><?php esc_html_e( 'Use AI to create high-quality titles and meta descriptions for posts and pages', 'wordpress-seo' ); ?></span>
<?php
printf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sAI%2$s: Better SEO titles and meta descriptions, faster.', 'wordpress-seo' ),
'<strong>',
'</strong>'
);
?>
</li>
<li class="yoast-seo-premium-benefits__item">
<span class="yoast-seo-premium-benefits__title"><?php esc_html_e( 'Reach bigger audiences', 'wordpress-seo' ); ?></span>
<span class="yoast-seo-premium-benefits__description"><?php esc_html_e( 'Optimize a single post for synonyms and related keyphrases and get extra checks with the Premium SEO analysis', 'wordpress-seo' ); ?></span>
<?php
printf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sMultiple keywords%2$s: Rank higher for more searches.', 'wordpress-seo' ),
'<strong>',
'</strong>'
);
?>
</li>
<li class="yoast-seo-premium-benefits__item">
<span class="yoast-seo-premium-benefits__title"><?php esc_html_e( 'Save time on doing SEO', 'wordpress-seo' ); ?></span>
<span class="yoast-seo-premium-benefits__description"><?php esc_html_e( 'The Yoast SEO workouts guide you through important routine SEO tasks', 'wordpress-seo' ); ?></span>
<?php
printf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sSuper fast%2$s internal linking suggestions.', 'wordpress-seo' ),
'<strong>',
'</strong>'
);
?>
</li>
<li class="yoast-seo-premium-benefits__item">
<span class="yoast-seo-premium-benefits__title"><?php esc_html_e( 'Improve your internal linking structure', 'wordpress-seo' ); ?></span>
<span class="yoast-seo-premium-benefits__description"><?php esc_html_e( 'Get tools that tell you where and how to improve internal linking', 'wordpress-seo' ); ?></span>
<?php
printf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sNo more broken links%2$s: Automatic redirect manager.', 'wordpress-seo' ),
'<strong>',
'</strong>'
);
?>
</li>
<li class="yoast-seo-premium-benefits__item">
<span class="yoast-seo-premium-benefits__title"><?php esc_html_e( 'Reduce your site\'s carbon footprint', 'wordpress-seo' ); ?></span>
<span class="yoast-seo-premium-benefits__description"><?php esc_html_e( 'Save energy by reducing the crawlability of your site without hurting your rankings!', 'wordpress-seo' ); ?></span>
<?php
printf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$sAppealing social previews%2$s people actually want to click on.', 'wordpress-seo' ),
'<strong>',
'</strong>'
);
?>
</li>
<li class="yoast-seo-premium-benefits__item">
<span class="yoast-seo-premium-benefits__title"><?php esc_html_e( 'Prevents 404s', 'wordpress-seo' ); ?></span>
<span class="yoast-seo-premium-benefits__description"><?php esc_html_e( 'Easily create and manage redirects when you move or delete content', 'wordpress-seo' ); ?></span>
</li>
<li class="yoast-seo-premium-benefits__item">
<span class="yoast-seo-premium-benefits__title"><?php esc_html_e( 'Stand out on social media', 'wordpress-seo' ); ?></span>
<span class="yoast-seo-premium-benefits__description"><?php esc_html_e( 'Check what your Facebook or Twitter post will look like before posting them', 'wordpress-seo' ); ?></span>
</li>
<li class="yoast-seo-premium-benefits__item">
<span class="yoast-seo-premium-benefits__title"><?php esc_html_e( 'Premium support', 'wordpress-seo' ); ?></span>
<span class="yoast-seo-premium-benefits__description"><?php esc_html_e( 'Gain access to our 24/7 support team', 'wordpress-seo' ); ?></span>
<?php
printf(
/* translators: %1$s expands to a strong opening tag, %2$s expands to a strong closing tag. */
esc_html__( '%1$s24/7 support%2$s: Also on evenings and weekends.', 'wordpress-seo' ),
'<strong>',
'</strong>'
);
?>
</li>
</ul>
<?php endif; ?>
@@ -252,14 +274,7 @@ if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-202
<a target="_blank" href="<?php echo esc_url( $premium_extension['infoUrl'] ); ?>" class="yoast-link--more-info">
<?php
printf(
/* translators: Text between 1: and 2: will only be shown to screen readers. 3: expands to the product name. */
esc_html__( 'More information %1$sabout %3$s%2$s', 'wordpress-seo' ),
'<span class="screen-reader-text">',
'</span>',
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
$premium_extension['title']
);
esc_html_e( 'Explore now', 'wordpress-seo' );
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
echo $new_tab_message;
?>
@@ -267,7 +282,7 @@ if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-202
<?php endif; ?>
<?php if ( ! $has_valid_premium_subscription ) { ?>
<p>
<small class="yoast-money-back-guarantee"><?php esc_html_e( 'With 30-day money-back guarantee. No questions asked.', 'wordpress-seo' ); ?></small>
<small class="yoast-money-back-guarantee"><?php esc_html_e( 'With a 30-day money-back guarantee. No questions asked.', 'wordpress-seo' ); ?></small>
</p>
<?php } ?>
</section>
@@ -277,14 +292,11 @@ if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-202
<section class="yoast-promo-extensions">
<h2>
<?php
$yoast_outrank_copy = sprintf( esc_html__( 'Outrank your competitors even further', 'wordpress-seo' ) );
$yoast_outrank_copy = '<span class="yoast-heading-highlight">' . $yoast_outrank_copy . '</span>';
printf(
/* translators: 1: expands to Outrank your competitors even further, 2: expands to Yoast SEO */
esc_html__( '%1$s with %2$s extensions', 'wordpress-seo' ),
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $yoast_seo_extensions is properly escaped.
$yoast_outrank_copy,
/* translators: %1$s expands to a span opening tag, %2$s expands to a span closing tag, %3$s expands to Yoast SEO */
esc_html__( '%1$sOutrank your competitors even further%2$s with these %3$s plugins', 'wordpress-seo' ),
'<span class="yoast-heading-highlight">',
'</span>',
'Yoast SEO'
);
?>
@@ -365,14 +377,7 @@ if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-202
<a target="_blank" class="yoast-link--more-info" href="<?php echo esc_url( $extension['infoUrl'] ); ?>">
<?php
printf(
/* translators: Text between 1: and 2: will only be shown to screen readers. 3: expands to the product name, e.g. "News SEO" or "all the Yoast Plugins" */
esc_html__( 'More information %1$sabout %3$s%2$s', 'wordpress-seo' ),
'<span class="screen-reader-text">',
'</span>',
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: The `get_title` value is hardcoded; only passed through the WPSEO_Extensions class.
$extension['title']
);
esc_html_e( 'Explore now', 'wordpress-seo' );
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
echo $new_tab_message;
?>