Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

How can I disable update tips from wp-admin page? My WordPress wp-admin page showing this warning:

An automated WordPress update has failed to complete - please attempt the update again now.

But "Update" section of "Dashboard" shows that my WordPress, theme and plugins are up to date. How can I remove this warning? Also help me to completely disable this type of tips from my wp-admin page.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

This message is generated from a file called .maintenance in the root of your WordPress installation. To remove the message you simply need to delete the file.

source: http://www.wpmods.com/forums/topic/an-automated-wordpress-update-has-failed-to-complete

Edit: To remove all udpate tips from now on, paste the following code in your functions.php file:

if ( !current_user_can( 'edit_users' ) ) { add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 ); add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) ); }

This code will remove all update notifications for all the wordpress users with rights to edit other users (usually administrators)

share|improve this answer
    
But how to completely disable this type of messages? –  chanchal1987 Aug 17 '10 at 9:25
    
I'm sorry, I had forgotten about that. I've updated the answer to include the solution to this issue too. –  mvime Aug 17 '10 at 9:54
    
Code is taken from: wpcookies.com/remove-wordpress-update-notice-from-admin-panel . But this is not working for me. –  chanchal1987 Aug 17 '10 at 12:23
    
Mmm.. I can't test it myself because my two wordpress installations are already updated, but it seems that there are some plugins for that: wordpress.org/extend/plugins/disable-wordpress-core-update and wordpress.org/extend/plugins/disable-wordpress-updates would be two examples. –  mvime Aug 17 '10 at 16:30
    
Thanks... –  chanchal1987 Aug 18 '10 at 6:50

This filter is sufficient for Wordpress 3.0:

add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );

For 2.8 to 3.0 use this:

remove_action( 'wp_version_check', 'wp_version_check' );
remove_action( 'admin_init', '_maybe_update_core' );
add_filter( 'pre_transient_update_core', create_function( '$a', "return null;" ) );
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.