Skip to content

Commit

Permalink
Site Health: Fix typo in the robots.txt check messages.
Browse files Browse the repository at this point in the history
Follow-up to [59890].

See #56595.

git-svn-id: https://develop.svn.wordpress.org/trunk@59894 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Mar 1, 2025
1 parent 360732e commit 7e13238
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wp-admin/includes/class-wp-debug-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ private static function get_wp_server(): array {
$robotstxt_debug = true;

/* translators: %s: robots.txt */
$robotstxt_string = sprintf( __( 'There is a static %s file in your installation folder. WordPress can not dynamicly serve one.' ), 'robots.txt' );
$robotstxt_string = sprintf( __( 'There is a static %s file in your installation folder. WordPress cannot dynamically serve one.' ), 'robots.txt' );
} elseif ( got_url_rewrite() ) {
// No robots.txt file available and rewrite rules in place, turn debug info to false.
$robotstxt_debug = false;
Expand All @@ -522,9 +522,10 @@ private static function get_wp_server(): array {
$robotstxt_debug = true;

/* translators: %s: robots.txt */
$robotstxt_string = sprintf( __( 'WordPress can not dynamicly serve a %s file due to a lack of rewrite rule support' ), 'robots.txt' );
$robotstxt_string = sprintf( __( 'WordPress cannot dynamically serve a %s file due to a lack of rewrite rule support' ), 'robots.txt' );

}

$fields['static_robotstxt_file'] = array(
'label' => __( 'robots.txt' ),
'value' => $robotstxt_string,
Expand Down

0 comments on commit 7e13238

Please sign in to comment.