Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/wp-admin/includes/class-wp-site-health.php

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original file line number Diff line number Diff line change
Expand Up @@ -2759,32 +2759,32 @@ public function get_test_autoloaded_options() {
*/
public function get_test_search_engine_visibility() {
$result = array(
'label' => __( 'Search engine indexing is enabled.', 'default' ),
'label' => __( 'Search engine indexing is enabled.' ),
'status' => 'good',
'badge' => array(
'label' => __( 'Privacy', 'default' ),
'label' => __( 'Privacy' ),
'color' => 'blue',
),
'description' => sprintf(
'<p>%s</p>',
__( 'Search engines can crawl and index your site. No action needed.', 'default' )
__( 'Search engines can crawl and index your site. No action needed.' )
),
'actions' => sprintf(
'<p><a href="%1$s">%2$s</a></p>',
esc_url( admin_url( 'options-reading.php#blog_public' ) ),
__( 'Review your visibility settings', 'default' )
__( 'Review your visibility settings' )
),
'test' => 'search_engine_visibility',
);

// If indexing is discouraged, flip to “recommended”:
if ( ! get_option( 'blog_public' ) ) {
$result['status'] = 'recommended';
$result['label'] = __( 'Search engines are discouraged from indexing this site.', 'default' );
$result['label'] = __( 'Search engines are discouraged from indexing this site.' );
$result['badge']['color'] = 'blue';
$result['description'] = sprintf(
'<p>%s</p>',
__( 'Your site is hidden from search engines. Consider enabling indexing if this is a public site.', 'default' )
__( 'Your site is hidden from search engines. Consider enabling indexing if this is a public site.' )
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function register_routes() {
'force' => array(
'type' => 'boolean',
'default' => false,
'description' => __( 'Whether to bypass Trash and force deletion.', 'default' ),
'description' => __( 'Whether to bypass Trash and force deletion.' ),
),
),
),
Expand Down Expand Up @@ -510,7 +510,7 @@ public function get_item_schema() {
// Base properties for every Post.
'properties' => array(
'id' => array(
'description' => __( 'Unique identifier for the post.', 'default' ),
'description' => __( 'Unique identifier for the post.' ),
'type' => 'integer',
'context' => array( 'view', 'edit', 'embed' ),
'readonly' => true,
Expand Down Expand Up @@ -771,7 +771,7 @@ public function get_create_params() {
protected function get_parent_font_family_post( $font_family_id ) {
$error = new WP_Error(
'rest_post_invalid_parent',
__( 'Invalid post parent ID.', 'default' ),
__( 'Invalid post parent ID.' ),
array( 'status' => 404 )
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function get_item_schema() {
// Base properties for every Post.
'properties' => array(
'id' => array(
'description' => __( 'Unique identifier for the post.', 'default' ),
'description' => __( 'Unique identifier for the post.' ),
'type' => 'integer',
'context' => array( 'view', 'edit', 'embed' ),
'readonly' => true,
Expand Down
Loading