Changeset 60529
- Timestamp:
- 07/31/2025 11:07:03 PM (6 months ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
-
css/dashboard.css (modified) (1 diff)
-
includes/class-wp-site-health.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/dashboard.css
r58895 r60529 443 443 #dashboard_right_now .search-engines-info:before { 444 444 content: "\f348"; 445 color: #d63638; 445 446 } 446 447 -
trunk/src/wp-admin/includes/class-wp-site-health.php
r60319 r60529 2685 2685 */ 2686 2686 $result['actions'] = apply_filters( 'site_status_autoloaded_options_action_to_perform', $result['actions'] ); 2687 return $result; 2688 } 2689 2690 /** 2691 * Tests whether search engine indexing is enabled. 2692 * 2693 * Surfaces as “good” if `blog_public === 1`, or “recommended” if `blog_public === 0`. 2694 * 2695 * @since 6.9 2696 * 2697 * @return array The test results. 2698 */ 2699 public function get_test_search_engine_visibility() { 2700 $result = array( 2701 'label' => __( 'Search engine indexing is enabled.', 'default' ), 2702 'status' => 'good', 2703 'badge' => array( 2704 'label' => __( 'Privacy', 'default' ), 2705 'color' => 'blue', 2706 ), 2707 'description' => sprintf( 2708 '<p>%s</p>', 2709 __( 'Search engines can crawl and index your site. No action needed.', 'default' ) 2710 ), 2711 'actions' => sprintf( 2712 '<p><a href="%1$s">%2$s</a></p>', 2713 esc_url( admin_url( 'options-reading.php#blog_public' ) ), 2714 __( 'Review your visibility settings', 'default' ) 2715 ), 2716 'test' => 'search_engine_visibility', 2717 ); 2718 2719 // If indexing is discouraged, flip to “recommended”: 2720 if ( ! get_option( 'blog_public' ) ) { 2721 $result['status'] = 'recommended'; 2722 $result['label'] = __( 'Search engines are discouraged from indexing this site.', 'default' ); 2723 $result['badge']['color'] = 'blue'; 2724 $result['description'] = sprintf( 2725 '<p>%s</p>', 2726 __( 'Your site is hidden from search engines. Consider enabling indexing if this is a public site.', 'default' ) 2727 ); 2728 } 2729 2687 2730 return $result; 2688 2731 } … … 2776 2819 'test' => 'autoloaded_options', 2777 2820 ), 2821 'search_engine_visibility' => array( 2822 'label' => __( 'Search Engine Visibility' ), 2823 'test' => 'search_engine_visibility', 2824 ), 2778 2825 ), 2779 2826 'async' => array(
Note: See TracChangeset
for help on using the changeset viewer.