PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.4
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.4
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / views / tabs / metas / archives / help.php

help.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.4, at admin/views/tabs/metas/archives/help.php

36 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSEO plugin file.
4 *
5 * @package WPSEO\Admin\Views\Archive
6 */
7
8 $archives_help_content = [
9 sprintf(
10 /* translators: %1$s / %2$s: links to an article about duplicate content on yoast.com */
11 esc_html__( 'If you\'re running a one author blog, the author archive will be exactly the same as your homepage. This is what\'s called a %1$sduplicate content problem%2$s.', 'wordpress-seo' ),
12 '<a target="_blank" href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/duplicate-content' ) ) . '">',
13 '</a>'
14 ),
15 sprintf(
16 /* translators: %s expands to <code>noindex, follow</code> */
17 esc_html__( 'If this is the case on your site, you can choose to either disable it (which makes it redirect to the homepage), or to add %s to it so it doesn\'t show up in the search results.', 'wordpress-seo' ),
18 '<code>noindex,follow</code>'
19 ),
20 esc_html__( 'Note that links to archives might be still output by your theme and you would need to remove them separately.', 'wordpress-seo' ),
21 esc_html__( 'Date-based archives could in some cases also be seen as duplicate content.', 'wordpress-seo' ),
22 ];
23
24 $archives_help = new WPSEO_Admin_Help_Panel(
25 'search-appearance-archives',
26 __( 'Learn more about the archives setting', 'wordpress-seo' ),
27 implode( ' ', $archives_help_content ),
28 'has-wrapper'
29 );
30
31 // phpcs:ignore WordPress.Security.EscapeOutput -- get_button_html() output is properly escaped.
32 echo '<p class="help-button-inline"><strong>' . esc_html__( 'Archives settings help', 'wordpress-seo' ) . $archives_help->get_button_html() . '</strong><p>';
33
34 // phpcs:ignore WordPress.Security.EscapeOutput -- get_panel_html() output is properly escaped.
35 echo $archives_help->get_panel_html();
36