WordPress 3.2 has broken my TinyMCE code

I found some info on changes in 3.2 that might be relevant: Aparrently, wp_tiny_mce_preload_dialogs() no longer exists from WP3.2 on. It got replaced by wp_preload_dialogs() which is now being called from wp_quicktags(). wp_quicktags, on his turn, is being called from the_editor() function. So, if you’re using the_editor() you no longer need to manually call the … Read more

Customize plugin update “new version is available” text

Since the text is processed by _() function, then, of course, you can modify it using gettext filter. function change_update_notification_msg( $translated_text, $untranslated_text, $domain ) { if ( is_admin() ) { $texts = array( ‘There is a new version of %1$s available. <a href=”https://wordpress.stackexchange.com/questions/323927/%2$s” %3$s>View version %4$s details</a>.’ => ‘My custom notification. There is a new … Read more

Why can’t I update username through WordPress API?

Looking on Trac I found a ticket that discusses exactly this issue: Administrator should be able to change usernames This is what it all boils down to: Changing usernames could break permalinks To prevent this a lot more than just changing the username in the DB would need to be done. E.g. redirection from old … Read more

Plugin update error message

I know this is kind of a backwards way of doing it, but I suppose if you disable the possibility to upgrade the plugin, then you don’t need to worry about the plugin being overwritten. Change the plugin version number (in the plugins main file comment header) to something ridiculously high so it won’t recommend … Read more

Git Deploying – Disabling plugin/theme installation/update on remote?

Set the constant DISALLOW_FILE_MODS to TRUE in your wp-config.php: const DISALLOW_FILE_MODS = TRUE; See the Codex for background information: Setting this constant also disables the Plugin and Theme editor (i.e. you don’t need to set DISALLOW_FILE_MODS and DISALLOW_FILE_EDIT, as on its own DISALLOW_FILE_MODS will have the same effect). It will also prevent installing or uninstalling … Read more

Disable requests to api.wordpress.org

You can Disable HTTP Calls by adding this in your wp-config.php define( ‘WP_HTTP_BLOCK_EXTERNAL’, TRUE ); This will disable/block all external HTTP requests and will make website alot faster. And then you can whitelist domains that you don’t want to block. define( ‘WP_ACCESSIBLE_HOSTS’, ‘example.com, domain.com’ );

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