core_update_footer [ WordPress Function ]
core_update_footer ( $msg = '' )
| Defined at: |
|
Benzer Fonksiyonlar: wp_update_term, option_update_filter, iframe_footer, get_core_updates, list_core_update
No description yet.
Source
<?php
function core_update_footer( $msg = '' ) {
if ( !current_user_can('update_core') )
return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] );
$cur = get_preferred_from_update_core();
if ( ! isset( $cur->current ) )
$cur->current = '';
if ( ! isset( $cur->url ) )
$cur->url = '';
if ( ! isset( $cur->response ) )
$cur->response = '';
switch ( $cur->response ) {
case 'development' :
return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), $GLOBALS['wp_version'], network_admin_url( 'update-core.php' ) );
break;
case 'upgrade' :
return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', network_admin_url( 'update-core.php' ), $cur->current);
break;
case 'latest' :
default :
return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] );
break;
}
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- PHPXRef 0.7 : WordPress : /wp-admin/includes/update.php source
... 111 } 112 } 113 add_filter( 'update_footer', 'core_update_footer' ); 114 115 function update_nag() { 116 if ( is_multisite() && !current_user_can('update_core' ) ) ...
phpxref.ftwr.co.uk - /wp-admin/includes/update.php source - PHP Cross Reference ...
Jun 1, 2011... 80 } 81 return false; 82 } 83 84 function core_update_footer( $msg ... 116 add_filter( 'update_footer', 'core_update_footer' ); 117 118 function ...
xref.yoast.com - <?php /** * WordPress Administration Update API * * @package ...
... $update->locale == $locale ) return $update; } return false; } function core_update_footer( $msg = '' ) { if ( !current_user_can('update_core') ) return sprintf( __( ...
core.svn.wordpress.org - How to Hide or remove the WordPress Upgrade Message in the ...
... function hide_update_message() { remove_action( 'admin_notices', ' update_nag', 3 ); remove_filter( 'update_footer', 'core_update_footer' ); }. 2. All you have ...
wparena.com