Support for extending link_category taxonomy if it is in use.

This commit moves #2299 into 3.0