C:\xampp\htdocs\landing\wp-content\plugins\wordpress-seo\admin\views\tabs\metas\archives\help.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin\Views\Archive
 */

$archives_help_content = [
    
sprintf(
        
/* translators: %1$s / %2$s: links to an article about duplicate content on yoast.com */
        
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' ),
        
'<a target="_blank" href="' esc_urlWPSEO_Shortlinker::get'https://yoa.st/duplicate-content' ) ) . '">',
        
'</a>'
    
),
    
sprintf(
        
/* translators: %s expands to <code>noindex, follow</code> */
        
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' ),
        
'<code>noindex,follow</code>'
    
),
    
esc_html__'Note that links to archives might be still output by your theme and you would need to remove them separately.''wordpress-seo' ),
    
esc_html__'Date-based archives could in some cases also be seen as duplicate content.''wordpress-seo' ),
];

$archives_help = new WPSEO_Admin_Help_Panel(
    
'search-appearance-archives',
    
__'Learn more about the archives setting''wordpress-seo' ),
    
implode' '$archives_help_content ),
    
'has-wrapper'
);

// phpcs:ignore WordPress.Security.EscapeOutput -- get_button_html() output is properly escaped.
echo '<p class="help-button-inline"><strong>' esc_html__'Archives settings help''wordpress-seo' ) . $archives_help->get_button_html() . '</strong><p>';

// phpcs:ignore WordPress.Security.EscapeOutput -- get_panel_html() output is properly escaped.
echo $archives_help->get_panel_html();
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586