I believe it’s important to be transparent with our mistakes. Unfortunately I have discovered a bug that hides plugin updates while White Label is active.

Don’t worry the bug does not break anything and is not a security hole. It simply hides plugin updates while the last version of White Label is enabled through the settings page. 

The bug affects White Label Free & White Label Pro version 2.0.0 – 2.0.2. I estimate that there were approximately 800 downloads between  01/01/20202 to 01/11/2020. If you have downloaded White Label within those 11 days, then your site may be affected.

How to view updates again

If you have White Label version 2.0.0 – 2.0.2 installed on your site, then you’ll need to go to the White Label settings page and temporarily disable White labelling from the general tab.

Deactivating or uninstalling the plugin will also restore the updates.

That’s all. Your updates will now show in the WordPress Dashboard again.

Please ensure that you update to version 2.0.3 before re-enabling. This bug has been patched and it will not happen again.

Download the fixed version

You are safe to update the plugin after White Label has been turned off or deactivated. The fixed version (2.0.3)  has already been released.

You can also manually download the latest version that includes the patch.

White Label Free https://wordpress.org/plugins/white-label/

White Label Pro https://whitewp.com/account/

How did this happen?

Unfortunately this bug was an oversight on my behalf. I’m sorry for any confusion & frustration that this bug may have caused.

The bug was within the new feature that allows White Label Administors to hide plugin updates from regular administrators.

The feature makes use of the WordPress update transient. It hooks in and removes the selected plugins from the update details.

The bug happens while any White Label administrators are viewing the site. The mistake was made when exiting the site_transient_update_plugins filter early for White Label Administrators without returning update details again.

The bug was happened because the fucntion returned empty with return;. It should have returned with the update details.

function white_label_hide_plugin_updates( $value ) {

	// Exit early if it's WL Admin.
	if ( white_label_is_wl_admin() ) {
		return;
	}

        // ... code continues to hide each menus for none-wl admins.

The fixed version correctly returned the WordPress plugin update details that are inside the $value parameter.

Here is how the fixed version looks: return $value;

function white_label_hide_plugin_updates( $value ) {

	// Exit early if it's WL Admin.
	if ( white_label_is_wl_admin() ) {
		return $value;
	}

        // ... code continues to hide each menus for none-wl admins.

Again, I’m very sorry for any inconvience that the bug has caused.