WordPress.org

Make WordPress Core

Ticket #35288: 35288.1.diff

File 35288.1.diff, 1.5 KB (added by Presskopp, 5 years ago)
  • dashboard.php

     
    308308        if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '0' == get_option( 'blog_public' ) ) {
    309309
    310310                /**
    311                  * Filter the link title attribute for the 'Search Engines Discouraged'
     311                 * Filter the link title attribute for the 'Search engines discouraged'
    312312                 * message displayed in the 'At a Glance' dashboard widget.
    313313                 *
    314314                 * Prior to 3.8.0, the widget was named 'Right Now'.
     
    321321                $title = apply_filters( 'privacy_on_link_title', '' );
    322322
    323323                /**
    324                  * Filter the link label for the 'Search Engines Discouraged' message
     324                 * Filter the link label for the 'Search engines discouraged' message
    325325                 * displayed in the 'At a Glance' dashboard widget.
    326326                 *
    327327                 * Prior to 3.8.0, the widget was named 'Right Now'.
     
    330330                 *
    331331                 * @param string $content Default text.
    332332                 */
    333                 $content = apply_filters( 'privacy_on_link_text' , __( 'Search Engines Discouraged' ) );
     333                $content = apply_filters( 'privacy_on_link_text' , __( 'Search engines discouraged' ) );
    334334                $title_attr = '' === $title ? '' : " title='$title'";
    335335
    336                 echo "<p><a href='options-reading.php'$title_attr>$content</a></p>";
     336                echo '<div id="message" class="notice notice-warning"><p><a href="options-reading.php"'.$title_attr.'>'.$content.'</a></p></div>';
     337
     338               
    337339        }
    338340        ?>
    339341        </div>