Switch language

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




update_right_now_message [ WordPress Function ]

update_right_now_message ( No parameters )
Defined at:



No description yet.

Source


<?php
function update_right_now_message() {
    
$msg sprintf__('You are using <span class="b">WordPress %s</span>.'), $GLOBALS['wp_version'] );

    if ( 
current_user_can('update_core') ) {
        
$cur get_preferred_from_update_core();

        if ( isset( 
$cur->response ) && $cur->response == 'upgrade' )
            
$msg .= " <a href='" network_admin_url'update-core.php' ) . "' class='button'>" sprintf__('Update to %s'), $cur->current $cur->current __'Latest' ) ) . '</a>';
    }

    echo 
"<span id='wp-version-message'>$msg</span>";
}
?>

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