Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




core_update_footer [ WordPress Function ]

core_update_footer ( $msg = '' )
Defined at:



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 ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics