=== White Label Branding for WordPress ===
Author: Alberto Lau (RightHere LLC)
Author URL: http://plugins.righthere.com/white-label-branding/
Tags: white label branding, custom menus, custom dashboard panel, custom login, cms, wordpress, role manager, capability manager, custom colors, downloadable content, import and export
Requires at least: 4.7
Tested up to: 5.6
Stable tag: 4.2.8.98287


======== CHANGE LOG ========
Version 4.2.8.98287 - December 21, 2020
* Bug Fixed: Some sites crash on activation (trailing comma in function call only available from PHP 7.3). We added backward compatibility. 
* Update: Removed old query

Versions 4.2.7.97649 - August 17, 2020
* Compatibility Fix: Javascript error in Options Panel after upgrading to WordPress 5.5.
* Bug Fixed: Screen Options crashing on some sites when saving
* New Feature: Hide the WooCommerce advanced tab and sections when the user is not a WLB Administrator. WLB Administrators continue to have access to advanced WooCommerce tab always. 

Version 4.2.6.97219 - May 22, 2020
* Update: Lower the custom_menu_order filter priority, some unknown third-party plugin disables the menu sorting control
* Update: Option to hide update plugin should not apply to network admin.
* Bug Fixed: In some sites saving Screen Options is not working.
* New Feature: Replace Gutenberg WP logo with custom logo

Version 4.2.5.90646 - May 18, 2019
* Update: Rollback, previous fix in Options Panel causes more issues with other settings
* Bug Fixed: When saving any settings, the license gets reset (this only apply to White Label Branding for WordPress Multisite) and add-ons gets deactivated.

Version 4.2.4.90630 - May 17, 2019
* Update: Options Panel updated to version 2.9
* Update: RightHere API updated to https
* Bug Fixed: PHP warning save_option not defined

Version 4.2.3.86665 - December 14, 2018
* Update: Styling improvements in Options Panel

Version 4.2.2.85688 - October 5, 2018
* Compatibility Fix: PHP 7.2.1
* Update: Remove old legacy code for supporting WordPress 3.x

Version 4.2.1.83266 - April 24, 2018
* Compatibility Fix: Not possible to hide top level menu WPBakery Page Builder
* Update: Options Panel version 2.8.9

Version 4.2.0.83030 - March 7, 2018
* Bug Fixed: Missing icons for Admin Menu Settings

Version 4.1.9.81576 - September 26, 2017
* Bug Fixed: PHP warning displayed when invalid username is set as WLB Administrator (when PHP warnings are active)
* Bug Fixed: Some PHP warnings showing on PHP 7 console, about “Creating default object from empty value” in class.wlb_dashboard.php
* Update: Added Spanish translation .po and .mo files

Version 4.1.8.76505 - January 30, 2017
* Bug Fixed: WooCommerce menu icons not changing when replaced
* Update: Adjusted CSS in WLB Settings > Navigation > Admin Menu Settings

Version 4.1.7.76151 - January 15, 2017
* Bug Fixed: Old login sub-menu still visible after removing depreciated Login Branding.

Version 4.1.6.75863 - December 29, 2016
* Bug Fixed: Replace “Howdy, username” option stopped working after the release of WordPress 4.7
* Update: Move the “Enable notifications on non options pages” from Options > Troubleshooting to Options > Advanced Settings
* Update: Remove old Login Branding from Options > Advanced Settings. Over a year ago we announced that this feature would be depreciated and removed. It has been replaced with the much better Visual CSS Editor
* Update: wlb_options capability required in order to see the White Label Branding dashboard notification

Version 4.1.5.75687 - December 13, 2016
* Update: When using the Panic Key, also remove the wlb_administrator option, so that regular Administrators with the appropriate User Role and Capabilities can see hidden WLB menus.

Version 4.1.4.75349 - November 24, 2016
* Update: Make the old login branding OFF by default (in August 2015 we introduced the new Visual CSS Editor and announced that the old login branding module would be removed by the end of 2016)
* Bug Fixed: PHP warning in branding menu
* New Feature: Added a self rescue link that makes it possible to restore the Administrator capabilities to the default settings in case the capabilities were modified and the user is locked out of wp-admin.

Version 4.1.3.70836 - June 6, 2016
* New Feature: Added Troubleshooting option to disable White Label Branding update notifications

Version 4.1.2.70407 - May 26, 2016
* New Feature: Allow to set multiple users in the WLB Administrator field
* New Feature: Added filter wlb_skip_login to allow customization of the default WordPress login with the Visual CSS Editor without having to disable the old Login module
* Update: Added depreciated message to the old Login module

Version 4.1.1.69967 - May 10, 2016
* Bug Fixed: PHP Warning when hiding Plugins and Themes menu in wp-admin
* Bug Fixed: Disable Plugin and Theme notification is forcing an update every time. Implement a better notification disable that does not trigger a remote call every time
* Bug Fixed: When the WLB Administrator is set, the update notifications should show for this user
* Update: When WLB Administrator is set, Plugins and Appearance is only visible to this user if the Hide Plugins and Appearance options are set

Version 4.1.0.69894 - May 9, 2016
* New Feature: Added option to disable the Downloads section from in Calendarize it! for WordPress. Requires the latest version of both plugins that use the Options Panel
* New Feature: Added feature to hide update plugins and update themes
* New Feature: Added feature to hide plugins and appearance menu. This will only hide the menus, the screens are still accessible
* New Feature: Added feature to specify a White Label Branding Administrator (single user). Fallback to user role if the user looses Administrator rights. This feature is specially useful if the plugin is used in a customers website, and the customer insists to be an Administrator, but you don’t want the customer to have access to certain features
* New Feature: The White Label Branding (WLB) Administrator feature is only visible to the WLB Administrator

Version 4.0.9.69776 - May 2, 2016
* Compatibility Fix: Change classes where the constructor has the same name as the class to __construct (PHP 7 compatibility).
* Bug Fixed: Function Reference get_currentuserinfo has been depreciated and replaced with wp_get_current_user()

Version 4.0.8.66283 - January 6, 2016
* Bug Fixed: Installation of bundled login templates is not working
* Update: Updated the reported pop version
* Update: Changed visibility of update notification to only Administrators

Version 4.0.7.65075 - November 17, 2015
* Bug Fixed: PHP warning when using the move logout to root option
* Bug Fixed: Branding > Dashboard > Hide Dashboard Widgets, some widgets have empty labels
* Bug Fixed: Removed debugging code that generates a PHP warning in the navigation backend

Version 4.0.6.63709 - September 29, 2015
* Update: Options Panel updated to support add-on payments using Bitcoin and Alipay through Stripe.com

Version 4.0.5.63333 - September 16, 2015
* Compatibility Fix: Custom Admin Bar menu not showing in the backend to hide/show (WordPress 4.3.x)
* Bug Fixed: Some custom menus where always checked hidden in the navigation options
* Bug Fixed: Some plugin icons show smaller in menu when customized with WLB

Version 4.0.4.61872 - August 20, 2015
* New Feature: Custom CSS field in the branding section
* Update: Depreciated the old Color Schemer. For styling download the free Visual CSS Editor
* Compatibility Fix: Avoid third party plugin causing PHP warning

Version 4.0.3.58418 - April 24, 2015
* Improvement: Replaced add_query_arg() due to an XSS vulnerability issue that affects many WordPress plugins and themes. Please observe that before the function could be accessed the user had to be an Administrator, meaning that the potential issue was not available to the public.

Version 4.0.2.57483 - March 27, 2015
* Bug Fixed: Faulty third party code can cause an infinite loop in the Toolbar options

Version 4.0.1.57175 - March 12, 2015
* Update: Move the Roles and Capabilities tab to the first position
* Bug Fixed: Prevent crashing when the NextGen gallery plugin is activated
* Bug Fixed: Prevent Bootstrap from breaking White Label Branding icons
* Compatibility Fix: Not possible to hide the Appearance > Customize Sub Menu

Version 4.0.0.56008 - February 10, 2015
* Bug Fixed: Missing a menu hover selector
* Compatibility Fix: When using WLB and Tribe Events Calendar, the Google Map is not showing on the Event Page. The Events Calendar plugin sending an integer value when a string is expected.
* Bug Fixed: Removed PHP warning
* Update: Added WLB icon to menu
* New Feature: Added support for Downloadable Content
* New Feature: Added support for disabling the original color scheme module
* New Feature: Added support for disabling the original login branding
* New Feature: Added option in Troubleshooting tab to restore (Super) Admin capabilities to User Role
* New Feature: Visual CSS Editor for White Label Branding wp-admin (downloadable content)
* New Feature: Comments by User Role for White Label Branding (downloadable content)
* New Feature: Author Posts by User Role for White Label Branding (downloadable content)
* New Feature: Custom Menus for White Label Branding (downloadable content)
* New Feature: Hide Plugins in Plugins List for White Label Branding (downloadable Content)
* New Feature: Hide Widgets in WP Admin for White Label Branding (downloadable Content)

Version 3.3.1.54694 - November 8, 2014
* New Feature: Option to hide Toolbar from Super Admin
* Bug Fixed: Random disappearing menus
* Bug Fixed: Service unavailable(2) message on some sites when trying to update the plugin. ovh hosted sites should work now.
* Update: Increase the reported Options Panel version to 2.7.2
* Update: Updated jQuery version
* Update: Use the bundled jQuery on wp-login

Version 3.3.0 rev51961 - July 4, 2014
* Bug Fixed; PHP fatal error when using WordPress 3.8.

Version 3.2.9 rev51524 - June 25, 2014
* Bug Fixed: When a Custom User Role is too similar to the Administrator Role, the list of what that Custom Role was empty in the users list screen.
* Bug Fixed: Prevent a PHP warning when admin menu order has not been set ever.
* Compatibility Fix: Added WordPress 3.9 color scheme styles and back compatibility with WordPress 3.8.
* Bug Fixed: Alignment of hover action in menu for changing icons for wp-admin menu.

Version 3.2.8 rev49615 - May 15, 2014
* Bug Fixed: Blocking wp-admin for specific user roles also blocked Ajax

Version 3.2.7 rev48667 - April 7, 2014
* Bug Fixed: Some Toolbar (admin bar) items from the frontend are not shown in the Options > Navigation menu.

Version 3.2.6 rev46923 - February 3, 2014
* Compatibility Update: added compatibility workaround in order to better support ManageWP.com service.

Version 3.2.5 rev43116 - December 12, 2013
* New Feature: Change label on menu in wp-admin (WLB Settings > Navigation - Sort Admin Menu)
* New Feature: Support for Custom Icons (type face) in wp-admin menu

Version 3.2.4 rev43091 - December 11, 2013
* Compatibility Fix: WordPress 3.8 top header logo broken
* Compatibility Fix: WordPress 3.8 custom icons feature broken

Version 3.2.3 rev40353 - September 23, 2013
* Bug Fixed: In the user list, fix the total number of users, so that it does not count the Administrators.

Version 3.2.2 rev37652 - June 24, 2013
* Bug Fixed: Download section not working on some websites

Version 3.2.1 rev37239 - June 10, 2013
* Compatibility Fix: Prevent PHP warning when using Gravity Forms
* Bug Fixed: Downloads section crashing
* Update: Updated Options Panel to latest version

Version 3.2 rev37021 - June 5, 2013
* Update: Options Panel updated to latest version
* Update: Compatibility fix, WLB error message showing on Shortcode icon dialog
* Bug Fixed: Prevent a PHP warning when saving navigation options
* Bug Fixed: When unchecking all dashboard items and saving, the unchecked items just became checked again.
* New Feature: Allow branding of the title in the link, when the header logo is replaced

Version 3.1.1 rev36145 - April 23, 2013
* Bug Fixed: Prevent php warning when using checkbox and load_option=false
* Update: Hook loading text domain after theme setup
* Update: As per WordPress recommendation use load text domain in the plugins_loaded hook
* Update: Add missing text to localization files
* Update: Added missing text in Spanish

Version 3.1.0 rev35663 - April 2, 2013
* New Feature: Added support for custom link for header logo (replace W)

Version 3.0.9 rev35659 - April 2, 2013
* Bug Fixed: Login button styling didn't work on WordPress 3.5.1

Version 3.0.8 rev35175 - March 21, 2013
* New Feature: Update Options Panel with Auto Update
* New Feature: WordPress 3.5.1 menu hover text color

Version 3.0.7 rev31694 - January 4, 2013
* Update: Compatibility with WordPress 3.5. Implement color scheme to new primary and secondary button wp-admin selectors
* New Feature: Hide the WordPress version from the footer
* New Feature: Option to disable Email branding
* Bug Fixed: Pushed screen options saving to the admin_init hook, as on some setups the roles where not defined before plugins_loaded
* Bug Fixed: Do not replace email from is the header is set (resolved conflict with Contact Form 7)
* Bug Fixed: Menu font showing orange when menu have sub-menu on hover
* Bug Fixed: Logo in footer disappeared in WordPress 3.5
* Bug Fixed: White background when hovering out of an item
* Bug Fixed: Sub menu background color not getting applied

Version 3.0.6 rev28864 - August 17, 2012
* New Feature: Allow to change the dashboard icon url
* Bug Fixed: Remove php warnings
* Bug Fixed: jQuery script is not registered on the login screen, so it is loading from WLB folder
* Bug Fixed: Added space to a very long ling so that it doesn't give a false positive on certain security scanners.
* New Feature: Sample Theme integration file (pushed plugins_loaded to after_theme_setup plugin initialization)

Version 3.0.5 rev26174 - June 16, 2012
* Depreciate: Remove header height option, use the header logo to replace the WP logo on the Tool bar (Admin bar).
* New Feature: Added control for setting the width of the logo in the Tool Bar.
* New Feature: Replace the logo in the frontend Tool Bar.
* Bug Fixed: Compatibility issues with WordPress 3.4 Tool Bar settings.
* Update: Add back compatibility with WordPress 3.3
* Update: Use the WordPress jQuery

Version 3.0.4 rev23458 - April 26, 2012
* New Feature: Added support for using {site_title} in Email From Name under Branding
* New Feature: Added support for using {site_url} to dynamically load the current site URL in the Email From Name.
* Bug Fixed: Prevent a php warning in certain WordPress installations
* Bug Fixed: Sub Menu items with ampersands (&) where not saved
* Bug Fixed: Gap between custom logo and login form.
* Bug Fixed: Compatibility fix, make the left footer replacement selector more specific, as there is a theme using the same ID in a widget #footer-left
* Improvement: Admin, Editor and Public dashboard support Shortcodes in content

Version 3.0.3 rev23096 - March 21, 2012
* Bug Fixed: Pages by User Role (PUR) fix, after WP 3.1 PUR was not restricting Custom Dashboards correctly.
* Bug Fixed: Login form label not getting WLB setting
* Bug Fixed: Compatibility issue with some other plugins that was hiding the WLB Advanced Settings tab.
* Bug Fixed: When login advanced templates are empty, even if this feature is deactivated there is a javascript error.
* Bug Fixed: Main menu is showing orange on click (focus), applied same color as hover

Version 3.0.2 rev14700 - December 20, 2011
* Bug Fixed: Admin Bar checkboxes are reset when saving a different panel
* Bug Fixed: Custom Post Type column not showing in WordPress 3.3
* New Feature: Added option to move the logout link to the Admin Bar. By default this is inside the profile submenu.

Version 3.0.1 rev14037 - December 17, 2011
* Bug Fixed: Allow non WLB administrator to edit hide dashboard widgets
* Bug Fixed: Hide dashboard widgets are unset when saving another panel
* Bug Fixed: Hide Profile on Admin Bar when hiding sub-menu
* Bug Fixed: Admin Bar broken when opening the navigation tab
* New Feature: Added option to hide the Welcome Dashboard Panel
* New Feature: Added option to disable the automatic color scheme generation
* New Feature: Enable Admin Bar customization for WordPress 3.3
* New Feature: Added option to disable WordPress 3.3 pointers
* New Feature: Added option to replace "Howdy" username

Version 3.0.0 rev12331 - November 27, 2011

* New Feature: Save, Export and Import settings for wp-admin color branding
* New Feature: Save, Export and Import settings for login template branding
* New Feature: Save, Export and Import global settings for White Label Branding
* New Feature: Added optional Downloadable Content when License key is entered
* New Feature: Add Favicon
* New Feature: Set WordPress from name and email address
* New Feature: Hide dashboard panels created by other plugins
* New Feature: Change order of wp-admin menu
* New Feature: Login Screen CSS Settings (logo, opacity and background)
* New Feature: Optional Drag and Drop file upload for Login Screen, Login Form and Favicon
* New Feature: Customize Login Form
* New Feature: Login form support for iPad, iPhone and Smartphones (small template trigger)
* New Feature: Custom Icons (optional)
* New Feature: Added advanced wp-admin color branding
* New Feature: Disable wp-admin for specific User Role
* New Feature: Disable specific Screen Options (Editor or lower user role)
* New Feature: Save Default Screen Options layout (global)
* New Feature: Save Default Screen Options layout (per user)
* New Feature: Merged all White Label Branding related menus under WLB Settings
* Update: New Options Panel version 2.0

Version 2.0.9 rev4627 - June 14, 2011
* Bug Fixed: login background was cropped at the bottom when using custom login form.

Version 2.0.8 rev4581 - May 14, 2011
* New Feature: Added automatic update notification
* New Feature: Added theme integration files
* New Feature: Updated the German translation files

Version 2.0.7 rev4032 - April 28, 2011
* Bug Fixed: Scrollbars not showing on iPad and iPhone on wp-login.php
* Updated custom login template

Version 2.0.6 rev3771 - April 20, 2011
* Bug Fixed: unbind click event to prevent tabs from closing immediately after opening on some sites
* Bug Fixed: alternative login template manipulation to prevent conflict with some themes using old Mootools libraries. 

Version 2.0.5 rev3145 - March 24, 2011
* Added the capabilities in parenthesis needed to show specific sub-menu

Version 2.0.4 rev2512 - March 23, 2011
* Bug fix, removed the style that the hidden Admin bar outputs (28 pixels in top)

Version 2.0.3 rev2348 - March 18, 2011
* New feature, remove word "WordPress" from the header title on admin pages
* Bug fix, avoid displaying the scrollbar on the admin when adding a developer image url
* bug fix, hide admin users option, narrowed the selector for admin users to avoid a conflict with other plugins and themes that add user lists
* bug fix, do not show the role manager option when editing a user if it is not the real administrator

Version 2.0.2 rev2072 - March 8, 2011
* Fixed feature that hides the real Administrator from the User List

Version 2.0.1 rev1847 - March 2, 2011
* Added support for hiding the new Admin Bar in WordPress 3.1
* Added support for hiding items in the new Admin Bar
* Added support for hiding Admin bar settings in My Profile
* Added support for login_logo_url in Login page templates

Version 2.0.0 rev1686 - February 11, 2011
* Added ability to hide standard WordPress Dashboard Panels one by one
* Added user Role Manager
* Added Capability Manager
* Added option to hide Administrator user role from users list. 
* Added WLB Custom Dashboard Panel tool

Version 1.5.0 - December 3, 2010
* Added option to hide Favorite Actions
* Added option to hide Screen Options
* Added login screen background settings
* Added login screen HTML and CSS customization
* Added custom dashboard panel viewable only to users with Editor role
  (old custom dashboard panel will be viewable to all user roles)
* Added support for German language
* Added support for Portuguese language

Version 1.2.2 - November 8, 2010
* Fixed broken login logo replacement from previous version

Version 1.2.1 - November 2, 2010
* Fixed minor conflict with MiniMeta Widget Plugin

Version 1.2.0 - September 22, 2010
* Hide Nag update message
* Hide Nag download message
* Hide Contextual Help
* Submenu customization

Version 1.1.0 - September 20, 2010
* Updated the interface
* Added support for Spanish language

Version 1.0.0 - September 15, 2010
* First release.


======== DESCRIPTION ========

This plugin lets you take complete control over wp-admin. Add your own branding to WordPress. From customizing the login logo, footer logo in wp-admin to creating your own Login Templates and Color Schemes. Add your own Dashboard Panels viewale to all users, Editors or only Administrators. Remove standard WordPress Dashboard Panels one-by-one and even custom Dashboard Panels added by installed plugins. Control the visibility of top level menu and sub-menus. Change the order of the top level menus. Hide update nag, Download link, Contextual Help, Screen Options, and hide the Administrator Role from the User List. Save your settings partially or complete, import and export settings. Enable advanced features like Dashboard Tool to add your own Dashboard Panels (visibility of these panels can be controlled with Pages by User Role plugin (http://codecanyon.net/item/pages-by-user-role-for-wordpress/136020?ref=RightHere). Enable Role and Capability Manager lets you take complete control over user roles, create your own user roles and add custom capabilities. Enter the License Key (Item Purchase Code) and get access to Free Downloadable Content.

== INSTALLATION ==

1. Upload the 'white-label-branding' folder to the '/wp-content/plugins/' directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Click on 'White Label Branding' in the left admin bar of your dashboard

== FREQUENTLY ASKED QUESTIONS ==

Q: Can I add a logo to the login screen that is bigger than the standard 300x80 pixels?
A: Yes, we have created our plugin so you can upload any size logo for the login screen.

Q: Can I provide a Editor access to only some menu options under the Appearance menu?
A: Yes, we give you full control over the Appearance menu for the role Editor. If you want you can choose to hide the following:

	- Themes
	- Widgets
	- Menus
	- Background
	- Header

Q: Can I add a to the header of footer in the wp-admin that is taller than the standard 32 pixels?
A: Yes, we have created our plugin so that you can upload any size logo to the header and footer. If you upload a logo taller than the standard 32 pixels. You will need to adjust the height of the top bar. This is easily done by entering the heigh in pixels under the 'Branding' tab.

Q: How come I can't see the changes to the menu that I have made?
A: This is because you are logged in as an Administrator. You need to be logged in as an Editor or a lower role.

Q: I have problems logging into wp-admin after i activated my custom login page. How do I login?
A: We have created this "shortcut" http://[your website]/wp-login.php?wlb_skip_login - which will skip the custom login and use the standard WordPress login.

== SOURCES - CREDITS & LICENSES ==

I've used the following opensource projects, graphics, fonts, API's or other files as listed. Thanks to the author for the creative work they made.


1) jQuery UI, http://jqueryui.com/

2) Pulpload, http://www.plupload.com/

3) Isolated Grass, http://graphicriver.net/item/isolated-grass/768801

Item Purchase Code: da918ed1-465a-4dec-9506-8c008b65fba4
Licensor's Author Username: vatesdesign
Licensee: RightHere LLC
License Type: ONE EXTENDED LICENSE

4) Icomoon:	Icons from Linecons designed by Sergey Shmidt (http://shmidt.in/)
		License: http://creativecommons.org/licenses/by-sa/3.0/us/