Check for files and database integrity

From development point of view the most practical way to detect and locate changes is version control – comparing against SVN/Git checkout of core or use such checkout directly. However there are also plugins around that verify files against set of hashes. I think Sucuri Security recently got such feature. The practical limitation of them … Read more

Customise WordPress Update Notice in wp-admin backend area

I did not find any hook available to customize the message. So decided to remove the original update nag and have our custom nag over there. Lets first remove the original nag // Admin menu hook add_action( ‘admin_menu’, ‘remove_core_update_nag’, 2 ); /** * Remove the original update nag */ function remove_core_update_nag() { remove_action( ‘admin_notices’, ‘update_nag’, … Read more

Updating beyond WordPress 4.2.1 yields “allowed memory size exhausted”

Edit line 149 in file.php as described in this thread: https://wordpress.org/support/topic/unable-to-update-plugins-after-upgrade-to-42 fixed it for me (on a linux host). edit: just read you are on windows: someone also posted a fix that applies to windows hosts there (apparently more complicated because backslashes are used in filepaths). so your line 149 in file.php should read: if … Read more

Are there hooks for WordPress updates?

Yes, there is a hook you can use, it’s called upgrader_process_complete. This hook fires after plugins or core has been upgraded. You can hook to this action and send an email: function send_custom_email( $object, $options ) { // Get the path for plugins $plugin_path = plugin_basename( __FILE__ ); // Check if the plugin is upgraded … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)