Definition:
function core_update_footer( $msg = '' ) {}
Parameters
- $msg
Source code
function core_update_footer( $msg = '' ) { if ( is_multisite() && !current_user_can('update_core') ) return false; 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; } }
729
No comments yet... Be the first to leave a reply!