Switch language

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




maintenance_nag [ WordPress Function ]

maintenance_nag ( No parameters )
Defined at:



No description yet.

Source


<?php
function maintenance_nag() {
    global 
$upgrading;
    if ( ! isset( 
$upgrading ) )
        return 
false;

    if ( 
current_user_can('update_core') )
        
$msg sprintf__('An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.'), 'update-core.php' );
    else
        
$msg __('An automated WordPress update has failed to complete! Please notify the site administrator.');

    echo 
"<div class='update-nag'>$msg</div>";
}
?>

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