Ticket #35288: 35288.1.diff
File 35288.1.diff, 1.5 KB (added by , 9 years ago) |
---|
-
dashboard.php
308 308 if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '0' == get_option( 'blog_public' ) ) { 309 309 310 310 /** 311 * Filter the link title attribute for the 'Search Engines Discouraged'311 * Filter the link title attribute for the 'Search engines discouraged' 312 312 * message displayed in the 'At a Glance' dashboard widget. 313 313 * 314 314 * Prior to 3.8.0, the widget was named 'Right Now'. … … 321 321 $title = apply_filters( 'privacy_on_link_title', '' ); 322 322 323 323 /** 324 * Filter the link label for the 'Search Engines Discouraged' message324 * Filter the link label for the 'Search engines discouraged' message 325 325 * displayed in the 'At a Glance' dashboard widget. 326 326 * 327 327 * Prior to 3.8.0, the widget was named 'Right Now'. … … 330 330 * 331 331 * @param string $content Default text. 332 332 */ 333 $content = apply_filters( 'privacy_on_link_text' , __( 'Search Engines Discouraged' ) );333 $content = apply_filters( 'privacy_on_link_text' , __( 'Search engines discouraged' ) ); 334 334 $title_attr = '' === $title ? '' : " title='$title'"; 335 335 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 337 339 } 338 340 ?> 339 341 </div>