wp_dashboard_browser_nag [ WordPress Function ]
wp_dashboard_browser_nag ( No parameters )
| Defined at: |
|
Benzer Fonksiyonlar: dashboard_browser_nag_class, wp_dashboard_secondary, wp_dashboard_setup, wp_dashboard_quota, wp_dashboard_right_now
No description yet.
Source
<?php
function wp_dashboard_browser_nag() {
$notice = '';
$response = wp_check_browser_version();
if ( $response ) {
if ( $response['insecure'] ) {
$msg = sprintf( __( "It looks like you're using an insecure version of <a href='%s'>%s</a>. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser." ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ) );
} else {
$msg = sprintf( __( "It looks like you're using an old version of <a href='%s'>%s</a>. For the best WordPress experience, please update your browser." ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ) );
}
$browser_nag_class = '';
if ( !empty( $response['img_src'] ) ) {
$img_src = ( is_ssl() && ! empty( $response['img_src_ssl'] ) )? $response['img_src_ssl'] : $response['img_src'];
$notice .= '<div class="alignright browser-icon"><a href="' . esc_attr($response['update_url']) . '"><img src="' . esc_attr( $img_src ) . '" alt="" /></a></div>';
$browser_nag_class = ' has-browser-icon';
}
$notice .= "<p class='browser-update-nag{$browser_nag_class}'>{$msg}</p>";
$browsehappy = 'http://browsehappy.com/';
$locale = get_locale();
if ( 'en_US' !== $locale )
$browsehappy = add_query_arg( 'locale', $locale, $browsehappy );
$notice .= '<p>' . sprintf( __( '<a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a>' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ) . '</p>';
$notice .= '<p class="hide-if-no-js"><a href="" class="dismiss">' . __( 'Dismiss' ) . '</a></p>';
$notice .= '<div class="clear"></div>';
}
echo apply_filters( 'browse-happy-notice', $notice, $response );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- PHPXRef 0.7 : WordPress : /wp-admin/includes/dashboard.php source
'wp_dashboard_browser_nag' ); 34 else 35 wp_add_dashboard_widget( ... ' wp_dashboard_browser_nag' ); 36 } 37 38 // Right Now 39 if ( is_blog_admin() ...
phpxref.ftwr.co.uk - /wp-admin/includes/dashboard.php source - PHP Cross Reference ...
Jun 1, 2011 ... 'wp_dashboard_browser_nag' ); 34 else 35 wp_add_dashboard_widget( ' dashboard_browser_nag', __( 'Your browser is out of date!
xref.yoast.com - wp_dashboard_setup (WordPress Function) - WPSeek.com
if ( $response['insecure'] ) wp_add_dashboard_widget( ' dashboard_browser_nag', __( 'You are using an insecure browser!' ), ' wp_dashboard_browser_nag' ); ...
wpseek.com - Docs for page dashboard.php
wp_dashboard_browser_nag (line 1142). void wp_dashboard_browser_nag (). wp_dashboard_cached_rss_widget (line 1006). Checks to see if all of the feed ...
phpdoc.wordpress.org